Advertisement
Guest User

Untitled

a guest
Jul 17th, 2015
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.21 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.codehaus.mojo</groupId>
  32.                 <artifactId>findbugs-maven-plugin</artifactId>
  33.                 <version>3.0.1</version>
  34.             </plugin>
  35.         <!--</plugins>
  36.        <plugins> -->
  37.             <plugin>
  38.                 <groupId>org.apache.maven.plugins</groupId>
  39.                 <artifactId>maven-compiler-plugin</artifactId>
  40.                 <version>3.1</version>
  41.                 <configuration>
  42.                     <source>${jdk.version}</source>
  43.                     <target>${jdk.version}</target>
  44.                     <encoding>${project.build.sourceEncoding}</encoding>
  45.                 </configuration>
  46.             </plugin>
  47.             <plugin>
  48.                 <groupId>org.apache.maven.plugins</groupId>
  49.                 <artifactId>maven-resources-plugin</artifactId>
  50.                 <version>3.0.1</version>
  51.                 <configuration>
  52.                     <encoding>${project.build.sourceEncoding}</encoding>
  53.                 </configuration>
  54.             </plugin>
  55.             <!--
  56.                Uncomment the following plugin declaration if you want
  57.                to fail the build if FindBugs finds problems.
  58.            -->
  59.             <!--
  60.            <plugin>
  61.                <groupId>org.codehaus.mojo</groupId>
  62.                <artifactId>findbugs-maven-plugin</artifactId>
  63.                <version>2.5.2</version>
  64.                <configuration>
  65.                    <effort>Max</effort>
  66.                    <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
  67.                    <threshold>Low</threshold>
  68.                    <xmlOutput>true</xmlOutput>
  69.                </configuration>
  70.                <executions>
  71.                    <execution>
  72.                        <id>analyze-compile</id>
  73.                        <phase>compile</phase>
  74.                        <goals>
  75.                            <goal>check</goal>
  76.                        </goals>
  77.                    </execution>
  78.                </executions>
  79.            </plugin>
  80.            -->
  81.             <!--
  82.                Uncomment the following plugin declarations if you want to create
  83.                FindBugs report without creating the project reports.
  84.            -->
  85.            
  86.             <plugin>
  87.                 <groupId>org.codehaus.mojo</groupId>
  88.                 <artifactId>findbugs-maven-plugin</artifactId>
  89.                 <version>2.5.2</version>
  90.                 <configuration>
  91.                     <effort>Max</effort>
  92.                     <failOnError>false</failOnError>
  93.                     <findbugsXmlOutputDirectory>${project.build.directory}/findbugs</findbugsXmlOutputDirectory>
  94.                     <threshold>Low</threshold>
  95.                     <xmlOutput>true</xmlOutput>
  96.                 </configuration>
  97.                 <executions>
  98.                     <execution>
  99.                         <id>analyze-compile</id>
  100.                         <phase>compile</phase>
  101.                         <goals>
  102.                             <goal>check</goal>
  103.                         </goals>
  104.                     </execution>
  105.                 </executions>
  106.             </plugin>
  107.            
  108.            
  109.             <plugin>
  110.                 <groupId>org.codehaus.mojo</groupId>
  111.                 <artifactId>xml-maven-plugin</artifactId>
  112.                 <version>1.0</version>
  113.                 <configuration>
  114.                     <transformationSets>
  115.                         <transformationSet>
  116.                             <dir>${project.build.directory}/findbugs</dir>
  117.                             <outputDir>${project.build.directory}/findbugs</outputDir>
  118.                            
  119.                             <!-- <stylesheet>fancy-hist.xsl</stylesheet> -->
  120.                             <!--<stylesheet>default.xsl</stylesheet> -->
  121.                             <!--<stylesheet>plain.xsl</stylesheet>-->
  122.                             <!--<stylesheet>fancy.xsl</stylesheet>-->
  123.                             <!--<stylesheet>summary.xsl</stylesheet>-->
  124.                            
  125.                             <fileMappers>
  126.                                 <fileMapper
  127.                                        implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  128.                                     <targetExtension>.html</targetExtension>
  129.                                 </fileMapper>
  130.                             </fileMappers>
  131.                         </transformationSet>
  132.                     </transformationSets>
  133.                 </configuration>
  134.                 <executions>
  135.                     <execution>
  136.                         <phase>compile</phase>
  137.                         <goals>
  138.                             <goal>transform</goal>
  139.                         </goals>
  140.                     </execution>
  141.                 </executions>
  142.                 <dependencies>
  143.                     <dependency>
  144.                         <groupId>com.google.code.findbugs</groupId>
  145.                         <artifactId>findbugs</artifactId>
  146.                         <version>3.0.1</version>
  147.                     </dependency>
  148.                 </dependencies>
  149.             </plugin>
  150.            
  151.         </plugins>
  152.     </build>
  153.     <!--
  154.        Uncomment the following reporting section if you want to create
  155.        FindBugs report as a part of the project reports.
  156.    -->
  157.     <!--
  158.    <reporting>
  159.        <plugins>
  160.            <plugin>
  161.                <groupId>org.apache.maven.plugins</groupId>
  162.                <artifactId>maven-project-info-reports-plugin</artifactId>
  163.                <version>2.7</version>
  164.            </plugin>
  165.            <plugin>
  166.                <groupId>org.codehaus.mojo</groupId>
  167.                <artifactId>findbugs-maven-plugin</artifactId>
  168.                <version>2.5.2</version>
  169.                <configuration>
  170.                    <effort>Max</effort>
  171.                    <threshold>Low</threshold>
  172.                    <xmlOutput>true</xmlOutput>
  173.                </configuration>
  174.            </plugin>
  175.        </plugins>
  176.    </reporting>
  177.    -->
  178. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement