博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SSH Maven pom.xml 备忘
阅读量:4149 次
发布时间:2019-05-25

本文共 4292 字,大约阅读时间需要 14 分钟。

jFinal群里某大神给的。

留作备忘。

还没来得及。

注:用的3

[html]   
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  2.   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">  
  3.   <modelVersion>4.0.0</modelVersion>  
  4.   <groupId>me.gacl</groupId>  
  5.   <artifactId>ssh</artifactId>  
  6.   <packaging>war</packaging>  
  7.   <version>0.0.1-SNAPSHOT</version>  
  8.   <name>ssh Maven Webapp</name>  
  9.   <url>http://maven.apache.org</url>  
  10.     
  11.     <!-- 指明编译源代码时使用的字符编码,maven编译的时候默认使用的GBK编码,   
  12.     通过project.build.sourceEncoding属性设置字符编码,告诉maven这个项目使用UTF-8来编译 -->  
  13.     <properties>  
  14.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>  
  15.     </properties>  
  16. <dependencies>  
  17.     <!-- Struts2的核心包 -->  
  18.     <dependency>  
  19.         <groupId>org.apache.struts</groupId>  
  20.         <artifactId>struts2-core</artifactId>  
  21.         <version>2.3.16</version>  
  22.         <exclusions>  
  23.             <exclusion>  
  24.                 <groupId>javassist</groupId>  
  25.                 <artifactId>javassist</artifactId>  
  26.             </exclusion>  
  27.         </exclusions>  
  28.     </dependency>  
  29.     <!-- convention-plugin插件,使用了这个插件之后,就可以采用注解的方式配置Action -->  
  30.     <dependency>  
  31.         <groupId>org.apache.struts</groupId>  
  32.         <artifactId>struts2-convention-plugin</artifactId>  
  33.         <version>2.3.20</version>  
  34.     </dependency>  
  35.     <!--config-browser-plugin插件,使用了这个插件之后,就可以很方便的浏览项目中的所有action及其与 jsp view的映射 -->  
  36.     <dependency>  
  37.         <groupId>org.apache.struts</groupId>  
  38.         <artifactId>struts2-config-browser-plugin</artifactId>  
  39.         <version>2.3.20</version>  
  40.     </dependency>  
  41.     <!-- spring3 -->  
  42.     <dependency>  
  43.         <groupId>org.springframework</groupId>  
  44.         <artifactId>spring-core</artifactId>  
  45.         <version>3.1.2.RELEASE</version>  
  46.     </dependency>  
  47.     <dependency>  
  48.         <groupId>org.springframework</groupId>  
  49.         <artifactId>spring-context</artifactId>  
  50.         <version>3.1.2.RELEASE</version>  
  51.     </dependency>  
  52.     <dependency>  
  53.         <groupId>org.springframework</groupId>  
  54.         <artifactId>spring-jdbc</artifactId>  
  55.         <version>3.1.2.RELEASE</version>  
  56.     </dependency>  
  57.     <dependency>  
  58.         <groupId>org.springframework</groupId>  
  59.         <artifactId>spring-beans</artifactId>  
  60.         <version>3.1.2.RELEASE</version>  
  61.     </dependency>  
  62.     <dependency>  
  63.         <groupId>org.springframework</groupId>  
  64.         <artifactId>spring-web</artifactId>  
  65.         <version>3.1.2.RELEASE</version>  
  66.     </dependency>  
  67.     <dependency>  
  68.         <groupId>org.springframework</groupId>  
  69.         <artifactId>spring-expression</artifactId>  
  70.         <version>3.1.2.RELEASE</version>  
  71.     </dependency>  
  72.     <dependency>  
  73.         <groupId>org.springframework</groupId>  
  74.         <artifactId>spring-orm</artifactId>  
  75.         <version>3.1.2.RELEASE</version>  
  76.     </dependency>  
  77.     <dependency>  
  78.         <groupId>org.apache.struts</groupId>  
  79.         <artifactId>struts2-spring-plugin</artifactId>  
  80.         <version>2.3.4.1</version>  
  81.     </dependency>  
  82.     <!-- log4j -->  
  83.     <dependency>  
  84.         <groupId>log4j</groupId>  
  85.         <artifactId>log4j</artifactId>  
  86.         <version>1.2.17</version>  
  87.     </dependency>  
  88.     <dependency>  
  89.         <groupId>junit</groupId>  
  90.         <artifactId>junit</artifactId>  
  91.         <version>4.12</version>  
  92.         <scope>test</scope>  
  93.     </dependency>  
  94.     <!-- hibernate4 -->  
  95.     <dependency>  
  96.         <groupId>org.hibernate</groupId>  
  97.         <artifactId>hibernate-core</artifactId>  
  98.         <version>4.1.7.Final</version>  
  99.     </dependency>  
  100.     <!-- mysql数据库驱动 -->  
  101.     <dependency>  
  102.         <groupId>mysql</groupId>  
  103.         <artifactId>mysql-connector-java</artifactId>  
  104.         <version>5.1.21</version>  
  105.     </dependency>  
  106.     <!-- druid -->  
  107.     <dependency>  
  108.         <groupId>com.alibaba</groupId>  
  109.         <artifactId>druid</artifactId>  
  110.         <version>0.2.8</version>  
  111.     </dependency>  
  112.     <!-- aspectjweaver -->  
  113.     <dependency>  
  114.         <groupId>org.aspectj</groupId>  
  115.         <artifactId>aspectjweaver</artifactId>  
  116.         <version>1.7.0</version>  
  117.     </dependency>  
  118.     <!-- jstl -->  
  119.     <dependency>  
  120.         <groupId>javax.servlet</groupId>  
  121.         <artifactId>jstl</artifactId>  
  122.         <version>1.2</version>  
  123.     </dependency>  
  124.     <dependency>  
  125.         <groupId>javax.servlet.jsp</groupId>  
  126.         <artifactId>jsp-api</artifactId>  
  127.         <version>2.2.1-b03</version>  
  128.         <scope>provided</scope>  
  129.     </dependency>  
  130.     <!-- fastJson -->  
  131.     <dependency>  
  132.         <groupId>com.alibaba</groupId>  
  133.         <artifactId>fastjson</artifactId>  
  134.         <version>1.1.24</version>  
  135.     </dependency>  
  136.     <!-- servlet -->  
  137.     <dependency>  
  138.         <groupId>javax.servlet</groupId>  
  139.         <artifactId>servlet-api</artifactId>  
  140.         <version>2.5</version>  
  141.         <scope>provided</scope>  
  142.     </dependency>  
  143.   </dependencies>  
  144.   <build>  
  145.     <finalName>ssh</finalName>  
  146.     <plugins>  
  147.         <plugin>  
  148.             <artifactId>maven-war-plugin</artifactId>  
  149.         </plugin>  
  150.         <plugin>  
  151.             <artifactId>maven-compiler-plugin</artifactId>  
  152.             <configuration>  
  153.                 <source>1.6</source>  
  154.                 <target>1.6</target>  
  155.                 <!-- 指明编译源代码时使用的字符编码,  
  156.                 maven编译的时候默认使用的GBK编码,   
  157.                 通过encoding属性设置字符编码,  
  158.                 告诉maven这个项目使用UTF-8来编译 -->  
  159.                 <!-- <encoding>utf8</encoding> -->  
  160.             </configuration>  
  161.         </plugin>  
  162.     </plugins>  
  163.   </build>  
  164. </project>  

转载地址:http://rytti.baihongyu.com/

你可能感兴趣的文章
程序员失误造成服务停用3小时,只得到半月辞退补偿,发帖喊冤
查看>>
码农:很多人称我“技术”,感觉这是不尊重!纠正无果后果断辞职
查看>>
php程序员看过来,这老外是在吐糟你吗?看看你中了几点!
查看>>
为什么说程序员是“培训班出来的”就是鄙视呢?
查看>>
码农吐糟同事:写代码低调点不行么?空格回车键与你有仇吗?
查看>>
阿里p8程序员四年提交6000次代码的确有功,但一次错误让人唏嘘!
查看>>
一道技术问题引起的遐想,最后得出结论技术的本质是多么的朴实!
查看>>
985硕士:非科班自学编程感觉还不如培训班出来的,硕士白读了?
查看>>
你准备写代码到多少岁?程序员们是这么回答的!
查看>>
码农:和产品对一天需求,产品经理的需求是对完了,可我代码呢?
查看>>
程序员过年回家该怎么给亲戚朋友解释自己的职业?
查看>>
技术架构师的日常工作是什么?网友:搭框架,写公共方法?
查看>>
第四章 微信飞机大战
查看>>
九度:题目1008:最短路径问题
查看>>
九度Online Judge
查看>>
九度:题目1027:欧拉回路
查看>>
九度:题目1012:畅通工程
查看>>
九度:题目1017:还是畅通工程
查看>>
九度:题目1034:寻找大富翁
查看>>
第六章 背包问题——01背包
查看>>