SSH Maven pom.xml 備忘

jFinal羣裏某大神給的。

留作備忘。

還沒來得及測試

注:spring用的3


[html] view plain copy
  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>  
發佈了103 篇原創文章 · 獲贊 71 · 訪問量 19萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章