Advertisement
Guest User

pom.xml configuration

a guest
Feb 13th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.92 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/maven-v4_0_0.xsd">
  3.    
  4.     <!- Ommited for clarity -->
  5.     <properties>
  6.         <!-- L'encoding du projet -->
  7.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  8.         <!-- GWT dependencies (from maven "central" repo) -->
  9.         <gwtVersion>2.0.3</gwtVersion>
  10.         <!-- JUnit version -->
  11.         <junit.version>3.8.2</junit.version>
  12.     </properties>
  13.     <!-- <-In the parent pom ************************* -->
  14.  
  15.  
  16.     <!-- *************************** -->
  17.     <!-- Dependencies of the project -->
  18.     <!-- *************************** -->
  19.     <dependencies>
  20.         <!-- TempoCore dependency -->
  21.         <dependency>
  22.             <groupId>net.stinfoservices.axsens.tempo.core</groupId>
  23.             <artifactId>TempoCore</artifactId>
  24.             <version>0.0.1</version>
  25.         </dependency>
  26.         <!-- GWT dependencies (from maven "central" repo) -->
  27.         <dependency>
  28.             <groupId>com.google.gwt</groupId>
  29.             <artifactId>gwt-servlet</artifactId>
  30.             <version>${gwtVersion}</version>
  31.             <scope>compile</scope>
  32.         </dependency>
  33.         <dependency>
  34.             <groupId>com.google.gwt</groupId>
  35.             <artifactId>gwt-user</artifactId>
  36.             <version>${gwtVersion}</version>
  37.             <scope>provided</scope>
  38.         </dependency>
  39.         <!-- WARNING never declare gwt-dev as a dependency -->
  40.  
  41.         <!-- GXT dependencies (from maven "central" repo) -->
  42.         <dependency>
  43.             <groupId>com.extjs</groupId>
  44.             <artifactId>gxt</artifactId>
  45.             <version>2.1.1</version>
  46.         </dependency>
  47.  
  48.         <!-- LOG dependencies (from maven "central" repo) -->
  49.         <dependency>
  50.             <groupId>commons-logging</groupId>
  51.             <artifactId>commons-logging</artifactId>
  52.             <version>1.1.1</version>
  53.         </dependency>
  54.         <dependency>
  55.             <groupId>log4j</groupId>
  56.             <artifactId>log4j</artifactId>
  57.             <version>1.2.16</version>
  58.         </dependency>
  59.  
  60.         <!-- AspectJ dependencies (from maven "central" repo) -->
  61.         <dependency>
  62.             <groupId>org.aspectj</groupId>
  63.             <artifactId>aspectjweaver</artifactId>
  64.             <version>1.6.8</version>
  65.         </dependency>
  66.  
  67.  
  68.  
  69.         <!-- SPRING - GWT dependencies (from maven "central" repo) -->
  70.         <!--
  71.             1. Download gwtrpc-spring-1.01.jar 2. Run: mvn install:install-file
  72.             -Dfile=gwtrpc-spring-1.01.jar -DgroupId=org.gwtrpcspring
  73.             -DartifactId=gwtrpcspring -Dversion=1.01 -Dpackaging=jar
  74.         -->
  75.         <dependency>
  76.             <groupId>org.gwtrpcspring</groupId>
  77.             <artifactId>gwtrpcspring </artifactId>
  78.             <version>1.01</version>
  79.         </dependency>
  80.  
  81.         <!-- SPRING  dependencies (from maven "central" repo) -->
  82.  
  83.         <dependency>
  84.             <groupId>org.springframework</groupId>
  85.             <artifactId>spring</artifactId>
  86.             <version>2.5.6</version>
  87.         </dependency>
  88.  
  89.         <dependency>
  90.             <groupId>org.springframework</groupId>
  91.             <artifactId>spring-test</artifactId>
  92.             <version>2.5.6</version>
  93.         </dependency>
  94.  
  95.         <!-- SPRING Security  dependencies (from maven "central" repo) -->
  96.         <dependency>
  97.             <groupId>org.springframework.security</groupId>
  98.             <artifactId>spring-security-core-tiger</artifactId>
  99.             <version>2.0.4</version>
  100.         </dependency>
  101.  
  102.         <dependency>
  103.             <groupId>org.springframework.security</groupId>
  104.             <artifactId>spring-security-core</artifactId>
  105.             <version>2.0.4</version>
  106.         </dependency>
  107.        
  108.         <!-- JUnit Connector -->
  109.         <dependency>
  110.             <groupId>junit</groupId>
  111.             <artifactId>junit</artifactId>
  112.             <version>4.8.1</version>
  113.             <scope>test</scope>
  114.         </dependency>
  115.  
  116.     </dependencies>
  117.  
  118.     <!-- ************************************ -->
  119.     <!-- Plugin customisation for the project -->
  120.     <!-- ************************************ -->
  121.     <build>
  122.         <plugins>
  123.             <!-- lance la compilation GWT des classes java en JSP
  124.             For style you have: OBF, PRETTY, or DETAILED-->
  125.             <plugin>
  126.                 <groupId>org.codehaus.mojo</groupId>
  127.                 <artifactId>gwt-maven-plugin</artifactId>
  128.                 <version>1.2</version>
  129.                 <configuration>
  130.                     <logLevel>INFO</logLevel>
  131.                     <style>DETAILED</style>
  132.                     <gwtVersion>${gwtVersion}</gwtVersion>
  133.                     <runTarget>TempoUI.html</runTarget>
  134.                     <hostedWebapp>
  135.                         ${basedir}/war
  136.                     </hostedWebapp>
  137.                     <inplace>false</inplace>
  138.                 </configuration>
  139.                 <executions>
  140.                     <execution>
  141.                         <goals>
  142.                             <goal>compile</goal>
  143.                         </goals>
  144.                     </execution>
  145.                 </executions>
  146.             </plugin>
  147.             <!-- Defini 1.6 comme JDK -->
  148.             <plugin>
  149.                 <groupId>org.apache.maven.plugins</groupId>
  150.                 <artifactId>maven-compiler-plugin</artifactId>
  151.                 <version>2.0.2</version>
  152.                 <configuration>
  153.                     <source>${jdk.version}</source>
  154.                     <target>${jdk.version}</target>
  155.                     <encoding>UTF-8</encoding>
  156.                 </configuration>
  157.             </plugin>
  158.             <!-- Definit le comportement du packaging war du projet -->
  159.             <plugin>
  160.                 <groupId>org.apache.maven.plugins</groupId>
  161.                 <artifactId>maven-war-plugin</artifactId>
  162.                 <version>2.0.2</version>
  163.                 <configuration>
  164.                     <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
  165.                 </configuration>
  166.             </plugin>
  167.         </plugins>
  168.     </build>
  169. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement