分享

一个基于maven的 struts2.3.4.1+hibernate4.1.6+sprin...

 KILLKISS 2013-04-14

完整的pom.xml

  1. <project xmlns="http://maven./POM/4.0.0" xmlns:xsi="http://www./2001/XMLSchema-instance"  
  2.     xsi:schemaLocation="http://maven./POM/4.0.0 http://maven./xsd/maven-4.0.0.xsd">  
  3.     <modelVersion>4.0.0</modelVersion>  
  4.   
  5.     <groupId>org.mvn.boxmail</groupId>  
  6.     <artifactId>mvn-boxmail</artifactId>  
  7.     <packaging>war</packaging>  
  8.     <version>0.0.1-SNAPSHOT</version>  
  9.   
  10.     <name>mvn-boxmail</name>  
  11.     <url>http://maven.</url>  
  12.   
  13.   
  14.     <dependencies>  
  15.         <dependency>  
  16.             <groupId>javax.servlet</groupId>  
  17.             <artifactId>servlet-api</artifactId>  
  18.             <version>2.5</version>  
  19.             <scope>provided</scope>  
  20.         </dependency>  
  21.         <dependency>  
  22.             <groupId>javax.servlet.jsp</groupId>  
  23.             <artifactId>jsp-api</artifactId>  
  24.             <version>2.1</version>  
  25.             <scope>provided</scope>  
  26.         </dependency>  
  27.         <dependency>  
  28.             <groupId>org.springframework</groupId>  
  29.             <artifactId>spring-core</artifactId>  
  30.             <version>3.1.2.RELEASE</version>  
  31.         </dependency>  
  32.         <dependency>  
  33.             <groupId>org.springframework</groupId>  
  34.             <artifactId>spring-orm</artifactId>  
  35.             <version>3.1.2.RELEASE</version>  
  36.         </dependency>  
  37.         <dependency>  
  38.             <groupId>org.springframework</groupId>  
  39.             <artifactId>spring-test</artifactId>  
  40.             <version>3.1.2.RELEASE</version>  
  41.         </dependency>  
  42.         <dependency>  
  43.             <groupId>org.springframework</groupId>  
  44.             <artifactId>spring-web</artifactId>  
  45.             <version>3.1.2.RELEASE</version>  
  46.         </dependency>  
  47.         <dependency>  
  48.             <groupId>org.springframework</groupId>  
  49.             <artifactId>spring-webmvc</artifactId>  
  50.             <version>3.1.2.RELEASE</version>  
  51.         </dependency>  
  52.         <dependency>  
  53.             <groupId>org.springframework</groupId>  
  54.             <artifactId>spring-tx</artifactId>  
  55.             <version>3.1.2.RELEASE</version>  
  56.         </dependency>  
  57.         <dependency>  
  58.             <groupId>org.springframework</groupId>  
  59.             <artifactId>spring-aspects</artifactId>  
  60.             <version>3.1.2.RELEASE</version>  
  61.         </dependency>  
  62.   
  63.   
  64.         <dependency>  
  65.             <groupId>org.apache.struts</groupId>  
  66.             <artifactId>struts2-core</artifactId>  
  67.             <version>2.3.4.1</version>  
  68.         </dependency>  
  69.   
  70.         <dependency>  
  71.             <groupId>org.apache.struts</groupId>  
  72.             <artifactId>struts2-spring-plugin</artifactId>  
  73.             <version>2.3.4.1</version>  
  74.         </dependency>  
  75.   
  76.         <dependency>  
  77.             <groupId>org.apache.struts</groupId>  
  78.             <artifactId>struts2-json-plugin</artifactId>  
  79.             <version>2.3.4.1</version>  
  80.         </dependency>  
  81.   
  82.         <dependency>  
  83.             <groupId>org.apache.struts</groupId>  
  84.             <artifactId>struts2-convention-plugin</artifactId>  
  85.             <version>2.3.4.1</version>  
  86.         </dependency>  
  87.   
  88.         <dependency>  
  89.             <groupId>org.apache.struts</groupId>  
  90.             <artifactId>struts2-jfreechart-plugin</artifactId>  
  91.             <version>2.3.4.1</version>  
  92.         </dependency>  
  93.   
  94.         <dependency>  
  95.             <groupId>org.apache.struts</groupId>  
  96.             <artifactId>struts2-dwr-plugin</artifactId>  
  97.             <version>2.3.4.1</version>  
  98.         </dependency>  
  99.   
  100.         <dependency>  
  101.             <groupId>org.hibernate</groupId>  
  102.             <artifactId>hibernate-core</artifactId>  
  103.             <version>4.1.6.Final</version>  
  104.         </dependency>  
  105.   
  106.         <dependency>  
  107.             <groupId>org.hibernate</groupId>  
  108.             <artifactId>hibernate-annotations</artifactId>  
  109.             <version>3.5.6-Final</version>  
  110.         </dependency>  
  111.   
  112.         <dependency>  
  113.             <groupId>org.hibernate</groupId>  
  114.             <artifactId>hibernate-proxool</artifactId>  
  115.             <version>4.1.6.Final</version>  
  116.         </dependency>  
  117.   
  118.         <dependency>  
  119.             <groupId>mysql</groupId>  
  120.             <artifactId>mysql-connector-java</artifactId>  
  121.             <version>5.1.21</version>  
  122.         </dependency>  
  123.   
  124.         <dependency>  
  125.             <groupId>log4j</groupId>  
  126.             <artifactId>log4j</artifactId>  
  127.             <version>1.2.17</version>  
  128.         </dependency>  
  129.   
  130.         <dependency>  
  131.             <groupId>commons-dbcp</groupId>  
  132.             <artifactId>commons-dbcp</artifactId>  
  133.             <version>1.4</version>  
  134.         </dependency>  
  135.   
  136.   
  137.         <dependency>  
  138.             <groupId>javax.annotation</groupId>  
  139.             <artifactId>jsr250-api</artifactId>  
  140.             <version>1.0</version>  
  141.         </dependency>  
  142.   
  143.         <dependency>  
  144.             <groupId>org.aspectj</groupId>  
  145.             <artifactId>aspectjweaver</artifactId>  
  146.             <version>1.7.0</version>  
  147.         </dependency>  
  148.   
  149.   
  150.   
  151.     </dependencies>  
  152.     <repositories>  
  153.         <repository>  
  154.             <snapshots>  
  155.                 <enabled>false</enabled>  
  156.             </snapshots>  
  157.             <id>Sonatype</id>  
  158.             <name>Sonatype Repository</name>  
  159.             <url>http://repository./content/groups/public</url>  
  160.         </repository>  
  161.     </repositories>  
  162.     <pluginRepositories>  
  163.         <pluginRepository>  
  164.             <releases>  
  165.                 <updatePolicy>never</updatePolicy>  
  166.             </releases>  
  167.             <snapshots>  
  168.                 <enabled>false</enabled>  
  169.             </snapshots>  
  170.             <id>Sonatype</id>  
  171.             <name>Sonatype Repository</name>  
  172.             <url>http://repository./content/groups/public</url>  
  173.         </pluginRepository>  
  174.     </pluginRepositories>  
  175.     <build>  
  176.   
  177.         <finalName>mvn-boxmail</finalName>  
  178.   
  179.         <plugins>  
  180.             <plugin>  
  181.                 <groupId>org.apache.maven.plugins</groupId>  
  182.                 <artifactId>maven-compiler-plugin</artifactId>  
  183.                 <version>2.0.2</version>  
  184.                 <configuration>  
  185.                     <source>1.6</source>  
  186.                     <target>1.6</target>  
  187.                 </configuration>  
  188.             </plugin>  
  189.             <plugin>  
  190.                 <groupId>org.apache.maven.plugins</groupId>  
  191.                 <artifactId>maven-site-plugin</artifactId>  
  192.                 <version>3.1</version>  
  193.                 <configuration>  
  194.                     <locales>en,zh</locales>  
  195.                 </configuration>  
  196.             </plugin>  
  197.             <plugin>  
  198.                 <groupId>org.apache.maven.plugins</groupId>  
  199.                 <artifactId>maven-javadoc-plugin</artifactId>  
  200.                 <version>2.8.1</version>  
  201.                 <configuration>  
  202.                     <show>private</show>  
  203.                     <nohelp>true</nohelp>  
  204.                 </configuration>  
  205.             </plugin>  
  206.   
  207.             <plugin>  
  208.                 <groupId>org.apache.maven.plugins</groupId>  
  209.                 <artifactId>maven-source-plugin</artifactId>  
  210.                 <version>2.2</version>  
  211.                 <executions>  
  212.                     <execution>  
  213.                         <id>attach-sources</id>  
  214.                         <goals>  
  215.                             <goal>jar-no-fork</goal>  
  216.                         </goals>  
  217.                     </execution>  
  218.                 </executions>  
  219.             </plugin>  
  220.   
  221.   
  222.         </plugins>  
  223.     </build>  
  224.     <reporting>  
  225.         <plugins>  
  226.             <plugin>  
  227.                 <groupId>org.apache.maven.plugins</groupId>  
  228.                 <artifactId>maven-javadoc-plugin</artifactId>  
  229.                 <version>2.8.1</version>  
  230.                 <configuration>  
  231.                     <stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>  
  232.                     <show>public</show>  
  233.                 </configuration>  
  234.             </plugin>  
  235.         </plugins>  
  236.     </reporting>  
  237. </project>  

完整的目录结构


源码下载

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多