Advertisement
Guest User

Untitled

a guest
Jul 17th, 2015
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.75 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.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>net.petrikainulainen.maven</groupId>
  5.     <artifactId>findbugs-cookbook</artifactId>
  6.     <packaging>jar</packaging>
  7.     <version>0.1</version>
  8.     <name>FindBugs Maven plugin Cookbook</name>
  9.     <description>FindBugs Maven plugin Cookbook</description>
  10.     <licenses>
  11.         <license>
  12.             <name>Apache License 2.0</name>
  13.             <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  14.         </license>
  15.     </licenses>
  16.     <properties>
  17.         <jdk.version>1.7</jdk.version>
  18.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19.     </properties>
  20.  
  21.     <build>
  22.         <finalName>findbugs</finalName>
  23.         <resources>
  24.             <resource>
  25.                 <filtering>true</filtering>
  26.                 <directory>src/main/resources</directory>
  27.             </resource>
  28.         </resources>
  29.         <plugins>
  30.             <plugin>
  31.                 <groupId>org.apache.maven.plugins</groupId>
  32.                 <artifactId>maven-compiler-plugin</artifactId>
  33.                 <version>3.1</version>
  34.                 <configuration>
  35.                     <source>${jdk.version}</source>
  36.                     <target>${jdk.version}</target>
  37.                     <encoding>${project.build.sourceEncoding}</encoding>
  38.                 </configuration>
  39.             </plugin>
  40.             <plugin>
  41.                 <groupId>org.apache.maven.plugins</groupId>
  42.                 <artifactId>maven-resources-plugin</artifactId>
  43.                 <version>2.6</version>
  44.                 <configuration>
  45.                     <encoding>${project.build.sourceEncoding}</encoding>
  46.                 </configuration>
  47.             </plugin>
  48.             <plugin>
  49.                 <groupId>org.codehaus.mojo</groupId>
  50.                 <artifactId>findbugs-maven-plugin</artifactId>
  51.                 <version>2.5.2</version>
  52.                 <configuration>
  53.                     <effort>Max</effort>
  54.                     <failOnError>false</failOnError>
  55.                     <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
  56.                     <threshold>Low</threshold>
  57.                     <xmlOutput>true</xmlOutput>
  58.                 </configuration>
  59.                 <executions>
  60.                     <execution>
  61.                         <id>analyze-compile</id>
  62.                         <phase>compile</phase>
  63.                         <goals>
  64.                             <goal>check</goal>
  65.                         </goals>
  66.                     </execution>
  67.                 </executions>
  68.             </plugin>
  69.             <plugin>
  70.                 <groupId>org.codehaus.mojo</groupId>
  71.                 <artifactId>xml-maven-plugin</artifactId>
  72.                 <version>1.0</version>
  73.                 <configuration>
  74.                     <transformationSets>
  75.                         <transformationSet>
  76.                             <dir>${project.build.directory}/findbugs</dir>
  77.                             <outputDir>${project.build.directory}/findbugs</outputDir>
  78.                             <!-- <stylesheet>fancy-hist.xsl</stylesheet> -->
  79.                             <stylesheet>default.xsl</stylesheet>
  80.                             <!--<stylesheet>plain.xsl</stylesheet>-->
  81.                             <!--<stylesheet>fancy.xsl</stylesheet>-->
  82.                             <!--<stylesheet>summary.xsl</stylesheet>-->
  83.                             <fileMappers>
  84.                                 <fileMapper
  85.                                        implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  86.                                     <targetExtension>.html</targetExtension>
  87.                                 </fileMapper>
  88.                             </fileMappers>
  89.                         </transformationSet>
  90.                     </transformationSets>
  91.                 </configuration>
  92.                 <executions>
  93.                     <execution>
  94.                         <phase>compile</phase>
  95.                         <goals>
  96.                             <goal>transform</goal>
  97.                         </goals>
  98.                     </execution>
  99.                 </executions>
  100.                 <dependencies>
  101.                     <dependency>
  102.                         <groupId>com.google.code.findbugs</groupId>
  103.                         <artifactId>findbugs</artifactId>
  104.                         <version>2.0.1</version>
  105.                     </dependency>
  106.                 </dependencies>
  107.             </plugin>
  108.         </plugins>
  109.     </build>
  110. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement