Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2010
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.68 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>be.howest</groupId>
  6.     <artifactId>someproject</artifactId>
  7.     <version>0.0.1-SNAPSHOT</version>
  8.     <packaging>jar</packaging>
  9.  
  10.     <name>someproject</name>
  11.     <url>http://maven.apache.org</url>
  12.  
  13.     <properties>
  14.         <java-version>1.6</java-version>
  15.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16.         <maven-pmd-version>2.5</maven-pmd-version>
  17.     </properties>
  18.  
  19.     <dependencies>
  20.         <dependency>
  21.             <groupId>junit</groupId>
  22.             <artifactId>junit</artifactId>
  23.             <version>4.7</version>
  24.             <scope>test</scope>
  25.         </dependency>
  26.         <dependency>
  27.             <groupId>log4j</groupId>
  28.             <artifactId>log4j</artifactId>
  29.             <version>1.2.16</version>
  30.         </dependency>
  31.     </dependencies>
  32.  
  33.  
  34.     <build>
  35.         <plugins>
  36.             <plugin>
  37.                 <groupId>org.apache.maven.plugins</groupId>
  38.                 <artifactId>maven-dependency-plugin</artifactId>
  39.                 <executions>
  40.                     <execution>
  41.                         <id>install</id>
  42.                         <phase>install</phase>
  43.                         <goals>
  44.                             <goal>sources</goal>
  45.                         </goals>
  46.                     </execution>
  47.                 </executions>
  48.             </plugin>
  49.             <plugin>
  50.                 <groupId>org.apache.maven.plugins</groupId>
  51.                 <artifactId>maven-compiler-plugin</artifactId>
  52.                 <configuration>
  53.                     <source>${java-version}</source>
  54.                     <target>${java-version}</target>
  55.                 </configuration>
  56.             </plugin>
  57.             <plugin>
  58.                 <groupId>org.apache.maven.plugins</groupId>
  59.                 <artifactId>maven-surefire-plugin</artifactId>
  60.                 <configuration>
  61.                     <junitArtifactName>junit:junit</junitArtifactName>
  62.                 </configuration>
  63.             </plugin>
  64.             <plugin>
  65.                 <groupId>org.codehaus.mojo</groupId>
  66.                 <artifactId>cobertura-maven-plugin</artifactId>
  67.                 <version>2.4</version>
  68.                 <configuration>
  69.                     <formats>
  70.                         <format>xml</format>
  71.                     </formats>
  72.                 </configuration>
  73.                 <executions>
  74.                     <execution>
  75.                         <phase>test</phase>
  76.                         <goals>
  77.                             <goal>cobertura</goal>
  78.                         </goals>
  79.                     </execution>
  80.                 </executions>
  81.             </plugin>
  82.             <plugin>
  83.                 <groupId>org.codehaus.mojo</groupId>
  84.                 <artifactId>findbugs-maven-plugin</artifactId>
  85.                 <version>2.3.1</version>
  86.                 <executions>
  87.                     <execution>
  88.                         <phase>test</phase>
  89.                         <goals>
  90.                             <goal>findbugs</goal>
  91.                         </goals>
  92.                     </execution>
  93.                 </executions>
  94.                 <configuration>
  95.                     <findbugsXmlOutput>true</findbugsXmlOutput>
  96.                     <findbugsXmlWithMessages>true</findbugsXmlWithMessages>
  97.                     <xmlOutput>true</xmlOutput>
  98.                 </configuration>
  99.             </plugin>
  100.             <plugin>
  101.                 <groupId>org.apache.maven.plugins</groupId>
  102.                 <artifactId>maven-pmd-plugin</artifactId>
  103.                 <version>${maven-pmd-version}</version>
  104.                 <executions>
  105.                     <execution>
  106.                         <phase>test</phase>
  107.                         <goals>
  108.                             <goal>pmd</goal>
  109.                             <goal>cpd</goal>
  110.                         </goals>
  111.                     </execution>
  112.                 </executions>
  113.             </plugin>
  114.             <plugin>
  115.                 <groupId>org.apache.maven.plugins</groupId>
  116.                 <artifactId>maven-javadoc-plugin</artifactId>
  117.                 <version>2.7</version>
  118.                 <executions>
  119.                     <execution>
  120.                         <phase>package</phase>
  121.                         <goals>
  122.                             <goal>javadoc</goal>
  123.                         </goals>
  124.                     </execution>
  125.                 </executions>
  126.             </plugin>
  127.         </plugins>
  128.     </build>
  129.  
  130.     <reporting>
  131.         <plugins>
  132.             <plugin>
  133.                 <groupId>org.apache.maven.plugins</groupId>
  134.                 <artifactId>maven-pmd-plugin</artifactId>
  135.                 <configuration>
  136.                     <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  137.                     <minimumTokens>100</minimumTokens>
  138.                     <targetJdk>${java-version}</targetJdk>
  139.                 </configuration>
  140.             </plugin>
  141.         </plugins>
  142.     </reporting>
  143. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement