Advertisement
Guest User

Untitled

a guest
Nov 14th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.86 KB | None | 0 0
  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/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.  
  5.     <groupId>com</groupId>
  6.     <artifactId>SocialAcademy</artifactId>
  7.     <version>0.0.1-SNAPSHOT</version>
  8.     <packaging>war</packaging>
  9.  
  10.     <name>SocialAcademy</name>
  11.  
  12.     <properties>
  13.         <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  14.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15.         <spring.version>3.2.4.RELEASE</spring.version>
  16.         <hibernate.version>4.2.7.Final</hibernate.version>
  17.     </properties>
  18.  
  19.     <dependencies>
  20.  
  21.         <!-- Spring -->
  22.         <dependency>
  23.             <groupId>org.springframework</groupId>
  24.             <artifactId>spring-context</artifactId>
  25.             <version>${spring.version}</version>
  26.         </dependency>
  27.         <dependency>
  28.             <groupId>org.springframework</groupId>
  29.             <artifactId>spring-webmvc</artifactId>
  30.             <version>${spring.version}</version>
  31.         </dependency>
  32.         <dependency>
  33.             <groupId>org.springframework</groupId>
  34.             <artifactId>spring-orm</artifactId>
  35.             <version>${spring.version}</version>
  36.         </dependency>
  37.        
  38.         <!-- Hibernate -->
  39.         <dependency>
  40.             <groupId>org.hibernate</groupId>
  41.             <artifactId>hibernate-core</artifactId>
  42.             <version>${hibernate.version}</version>
  43.         </dependency>
  44.        
  45.         <!-- Java EE -->
  46.         <dependency>
  47.             <groupId>javax.servlet</groupId>
  48.             <artifactId>servlet-api</artifactId>
  49.             <version>2.5</version>
  50.             <scope>provided</scope>
  51.         </dependency>
  52.         <dependency>
  53.             <groupId>jstl</groupId>
  54.             <artifactId>jstl</artifactId>
  55.             <version>1.2</version>
  56.         </dependency>
  57.         <dependency>
  58.             <groupId>javax</groupId>
  59.             <artifactId>javaee-web-api</artifactId>
  60.             <version>6.0</version>
  61.             <scope>provided</scope>
  62.         </dependency>
  63.        
  64.         <!-- Others -->
  65.         <dependency>
  66.             <groupId>commons-dbcp</groupId>
  67.             <artifactId>commons-dbcp</artifactId>
  68.             <version>1.4</version>
  69.         </dependency>
  70.         <dependency>
  71.             <groupId>mysql</groupId>
  72.             <artifactId>mysql-connector-java</artifactId>
  73.             <version>5.1.25</version>
  74.         </dependency>
  75.         <dependency>
  76.             <groupId>com.google.guava</groupId>
  77.             <artifactId>guava</artifactId>
  78.             <version>15.0</version>
  79.             <type>jar</type>
  80.         </dependency>      
  81.        
  82.     </dependencies>
  83.  
  84.     <build>
  85.         <plugins>
  86.             <plugin>
  87.                 <groupId>org.apache.maven.plugins</groupId>
  88.                 <artifactId>maven-compiler-plugin</artifactId>
  89.                 <version>2.3.2</version>
  90.                 <configuration>
  91.                     <source>1.6</source>
  92.                     <target>1.6</target>
  93.                     <compilerArguments>
  94.                         <endorseddirs>${endorsed.dir}</endorseddirs>
  95.                     </compilerArguments>
  96.                 </configuration>
  97.             </plugin>
  98.             <plugin>
  99.                 <groupId>org.apache.maven.plugins</groupId>
  100.                 <artifactId>maven-war-plugin</artifactId>
  101.                 <version>2.1.1</version>
  102.                 <configuration>
  103.                     <failOnMissingWebXml>false</failOnMissingWebXml>
  104.                 </configuration>
  105.             </plugin>
  106.             <plugin>
  107.                 <groupId>org.apache.maven.plugins</groupId>
  108.                 <artifactId>maven-dependency-plugin</artifactId>
  109.                 <version>2.1</version>
  110.                 <executions>
  111.                     <execution>
  112.                         <phase>validate</phase>
  113.                         <goals>
  114.                             <goal>copy</goal>
  115.                         </goals>
  116.                         <configuration>
  117.                             <outputDirectory>${endorsed.dir}</outputDirectory>
  118.                             <silent>true</silent>
  119.                             <artifactItems>
  120.                                 <artifactItem>
  121.                                     <groupId>javax</groupId>
  122.                                     <artifactId>javaee-endorsed-api</artifactId>
  123.                                     <version>6.0</version>
  124.                                     <type>jar</type>
  125.                                 </artifactItem>
  126.                             </artifactItems>
  127.                         </configuration>
  128.                     </execution>
  129.                 </executions>
  130.             </plugin>
  131.         </plugins>
  132.     </build>
  133.  
  134. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement