Chinaunix首页 | 论坛 | 博客
  • 博客访问: 109818
  • 博文数量: 19
  • 博客积分: 600
  • 博客等级: 上士
  • 技术积分: 230
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-12 04:04
文章分类

全部博文(19)

文章存档

2014年(4)

2009年(2)

2008年(13)

我的朋友

分类: Web开发

2014-08-04 17:09:15

完整的WEB项目POM配置

包含Lib包: Spring, freemarker, morphia, gson, common-digester, testng 以及apache的常用工具包.


点击(此处)折叠或打开

  1. <project xmlns="" xmlns:xsi=""
  2.     xsi:schemaLocation=" ">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>com.eicps.server</groupId>
  5.     <artifactId>sample</artifactId>
  6.     <packaging>war</packaging>
  7.     <version>0.0.1-SNAPSHOT</version>
  8.     <name>sample Maven Webapp</name>
  9.     <url>http://maven.apache.org</url>


  10.     <properties>
  11.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

  12.         <gson.version>2.2.2</gson.version>
  13.         <digester3.version>3.2</digester3.version>
  14.         <log4j.version>1.2.17</log4j.version>
  15.         <slf4j.version>1.7.7</slf4j.version>
  16.         <io.version>2.4</io.version>
  17.         <servlet.version>6.0.26</servlet.version>
  18.         <lang3.version>3.1</lang3.version>
  19.         <fileupload.version>1.2.2</fileupload.version>
  20.         <spring.version>3.1.4.RELEASE</spring.version>
  21.         <freemarker.version>2.3.19</freemarker.version>
  22.         <aspectjtools.version>1.7.1</aspectjtools.version>
  23.         <aspectjweaver.version>1.7.1</aspectjweaver.version>
  24.         <aopalliance.version>1.0</aopalliance.version>
  25.         <morphia.version>0.107</morphia.version>
  26.         <testng.version>6.5.2</testng.version>
  27.         <proxytoys.version>1.0</proxytoys.version>
  28.     </properties>


  29.     <dependencies>
  30.         <!-- Google JSON -->
  31.         <dependency>
  32.             <groupId>com.google.code.gson</groupId>
  33.             <artifactId>gson</artifactId>
  34.             <version>${gson.version}</version>
  35.         </dependency>
  36.         
  37.         <!-- XML2Bean -->
  38.         <dependency>
  39.             <groupId>org.apache.commons</groupId>
  40.             <artifactId>commons-digester3</artifactId>
  41.             <version>${digester3.version}</version>
  42.             <classifier>with-deps</classifier>
  43.         </dependency>


  44.         <!-- log4j -->
  45.         <dependency>
  46.             <groupId>log4j</groupId>
  47.             <artifactId>log4j</artifactId>
  48.             <version>${log4j.version}</version>
  49.         </dependency>
  50.         <dependency>
  51.             <groupId>org.slf4j</groupId>
  52.             <artifactId>slf4j-log4j12</artifactId>
  53.             <version>${slf4j.version}</version>
  54.         </dependency>


  55.         <!-- servlet -->
  56.         <dependency>
  57.             <groupId>org.apache.tomcat</groupId>
  58.             <artifactId>servlet-api</artifactId>
  59.             <version>${servlet.version}</version>
  60.             <scope>provided</scope>
  61.         </dependency>


  62.         <!-- commons -->
  63.         <dependency>
  64.             <groupId>org.apache.commons</groupId>
  65.             <artifactId>commons-lang3</artifactId>
  66.             <version>${lang3.version}</version>
  67.         </dependency>
  68.         <dependency>
  69.             <groupId>commons-fileupload</groupId>
  70.             <artifactId>commons-fileupload</artifactId>
  71.             <version>${fileupload.version}</version>
  72.         </dependency>
  73.         <dependency>
  74.             <groupId>commons-io</groupId>
  75.             <artifactId>commons-io</artifactId>
  76.             <version>${io.version}</version>
  77.         </dependency>


  78.         <!-- spring -->
  79.         <dependency>
  80.             <artifactId>spring-context</artifactId>
  81.             <groupId>org.springframework</groupId>
  82.             <version>${spring.version}</version>
  83.         </dependency>
  84.         <dependency>
  85.             <groupId>org.springframework</groupId>
  86.             <artifactId>spring-expression</artifactId>
  87.             <version>${spring.version}</version>
  88.         </dependency>
  89.         <dependency>
  90.             <groupId>org.springframework</groupId>
  91.             <artifactId>spring-webmvc</artifactId>
  92.             <version>${spring.version}</version>
  93.         </dependency>


  94.         <!-- freemarker -->
  95.         <dependency>
  96.             <groupId>org.freemarker</groupId>
  97.             <artifactId>freemarker</artifactId>
  98.             <version>${freemarker.version}</version>
  99.         </dependency>


  100.         <!-- aspect -->
  101.         <dependency>
  102.             <groupId>org.aspectj</groupId>
  103.             <artifactId>aspectjtools</artifactId>
  104.             <version>${aspectjtools.version}</version>
  105.         </dependency>
  106.         <dependency>
  107.             <groupId>org.aspectj</groupId>
  108.             <artifactId>aspectjweaver</artifactId>
  109.             <version>${aspectjweaver.version}</version>
  110.         </dependency>
  111.         <dependency>
  112.             <groupId>aopalliance</groupId>
  113.             <artifactId>aopalliance</artifactId>
  114.             <version>${aopalliance.version}</version>
  115.         </dependency>


  116.         <!-- morphia -->
  117.         <dependency>
  118.             <groupId>org.mongodb.morphia</groupId>
  119.             <artifactId>morphia</artifactId>
  120.             <version>${morphia.version}</version>
  121.         </dependency>
  122.         <dependency>
  123.             <groupId>org.mongodb.morphia</groupId>
  124.             <artifactId>morphia-logging-slf4j</artifactId>
  125.             <version>${morphia.version}</version>
  126.         </dependency>
  127.         <dependency>
  128.             <groupId>com.thoughtworks.proxytoys</groupId>
  129.             <artifactId>proxytoys</artifactId>
  130.             <version>${proxytoys.version}</version>
  131.         </dependency>


  132.         <!-- test -->
  133.         <dependency>
  134.             <groupId>org.testng</groupId>
  135.             <artifactId>testng</artifactId>
  136.             <version>${testng.version}</version>
  137.             <scope>test</scope>
  138.         </dependency>


  139.     </dependencies>
  140.     <build>
  141.         <plugins>
  142.             <plugin>
  143.                 <groupId>org.apache.maven.plugins</groupId>
  144.                 <artifactId>maven-compiler-plugin</artifactId>
  145.                 <version>2.5.1</version>
  146.                 <configuration>
  147.                     <source>1.6</source>
  148.                     <target>1.6</target>
  149.                 </configuration>
  150.             </plugin>
  151.         </plugins>
  152.         <finalName>sample</finalName>
  153.     </build>
  154. </project>


阅读(2183) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~