Sagar2018

cfLocal.xml

Aug 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 23.52 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  * Licensed to the Apache Software Foundation (ASF) under one
  4.  * or more contributor license agreements. See the NOTICE file
  5.  * distributed with this work for additional information
  6.  * regarding copyright ownership. The ASF licenses this file
  7.  * to you under the Apache License, Version 2.0 (the
  8.  * "License"); you may not use this file except in compliance
  9.  * with the License. You may obtain a copy of the License at
  10.  *
  11.  * http://www.apache.org/licenses/LICENSE-2.0
  12.  *
  13.  * Unless required by applicable law or agreed to in writing,
  14.  * software distributed under the License is distributed on an
  15.  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16.  * KIND, either express or implied. See the License for the
  17.  * specific language governing permissions and limitations
  18.  * under the License.
  19. -->
  20. <project
  21.  xmlns="http://maven.apache.org/POM/4.0.0"
  22.  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  23.  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  24.  
  25.   <modelVersion>4.0.0</modelVersion>
  26.  
  27.   <parent>
  28.     <groupId>org.apache.commons</groupId>
  29.     <artifactId>commons-parent</artifactId>
  30.     <version>42</version>
  31.   </parent>
  32.  
  33.   <groupId>org.apache.bcel</groupId>
  34.   <artifactId>bcel</artifactId>
  35.   <packaging>jar</packaging>
  36.   <version>6.2.0.1</version>
  37.   <name>Apache Commons BCEL</name>
  38.   <description>Apache Commons Bytecode Engineering Library</description>
  39.  
  40.   <url>http://commons.apache.org/proper/commons-bcel</url>
  41.   <inceptionYear>2004</inceptionYear>
  42.  
  43.   <properties>
  44.     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  45.     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  46.     <maven.compiler.source>1.8</maven.compiler.source>
  47.     <maven.compiler.target>1.8</maven.compiler.target>
  48.     <commons.componentid>bcel</commons.componentid>
  49.     <commons.module.name>org.apache.bcel</commons.module.name>
  50.     <commons.release.version>6.2.0.1</commons.release.version>
  51.     <commons.release.desc>(Java 8+)</commons.release.desc>
  52.     <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-bcel</commons.scmPubUrl>
  53.     <!-- Configuration properties for the OSGi maven-bundle-plugin -->
  54.     <commons.osgi.symbolicName>org.apache.${commons.componentid}</commons.osgi.symbolicName>
  55.     <commons.osgi.export>org.apache.bcel.*;version=${project.version};-noimport:=true</commons.osgi.export>
  56.     <commons.osgi.import>*</commons.osgi.import>
  57.     <commons.osgi.dynamicImport />
  58.     <commons.osgi.private />
  59.     <commons.jira.id>BCEL</commons.jira.id>
  60.     <commons.jira.pid>12314220</commons.jira.pid>
  61.     <commons.findbugs.version>3.0.5</commons.findbugs.version>
  62.     <checkstyle.plugin.version>2.17</checkstyle.plugin.version>
  63.     <commons.clirr.version>2.8</commons.clirr.version>
  64.     <jna.version>4.5.0</jna.version>
  65.     <!-- These properties will be set by the Maven Dependency plugin -->
  66.     <annotatedJdk>${org.checkerframework:jdk8:jar}</annotatedJdk>
  67.     <typeAnnotationsJavac>${org.checkerframework:compiler:jar}</typeAnnotationsJavac>
  68.     <checkerframework.version>2.5.3</checkerframework.version>
  69.   </properties>
  70.  
  71.   <!-- Cannot be added to Commons Parent, see https://issues.apache.org/jira/browse/COMMONSSITE-26 -->
  72.   <distributionManagement>
  73.     <site>
  74.       <id>apache.website</id>
  75.       <name>Apache Website</name>
  76.       <url>scp://people.apache.org/www/commons.apache.org/${commons.componentid}/</url>
  77.     </site>
  78.   </distributionManagement>
  79.  
  80.   <licenses>
  81.     <license>
  82.       <name>Apache License, Version 2.0</name>
  83.       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  84.       <distribution>repo</distribution>
  85.     </license>
  86.   </licenses>
  87.  
  88.   <organization>
  89.     <name>The Apache Software Foundation</name>
  90.     <url>http://www.apache.org/</url>
  91.   </organization>
  92.  
  93.   <developers>
  94.     <developer>
  95.       <name>Dave Brosius</name>
  96.       <id>dbrosius</id>
  97.       <email>dbrosius at mebigfatguy.com</email>
  98.     </developer>
  99.  
  100.     <developer>
  101.       <name>Torsten Curdt</name>
  102.       <id>tcurdt</id>
  103.       <email>tcurdt at apache.org</email>
  104.       <organization>ASF</organization>
  105.       <organizationUrl>http://www.apache.org/</organizationUrl>
  106.       <timezone>+1</timezone>
  107.     </developer>
  108.  
  109.     <developer>
  110.       <name>Markus Dahm</name>
  111.       <id>mdahm</id>
  112.       <email>m.dahm at gmx.de</email>
  113.       <organization>it-frameworksolutions</organization>
  114.     </developer>
  115.  
  116.     <developer>
  117.       <name>Jason van Zyl</name>
  118.       <email>jason at zenplex.com</email>
  119.     </developer>
  120.  
  121.     <developer>
  122.       <id>ggregory</id>
  123.       <name>Gary Gregory</name>
  124.       <email>ggregory@apache.org</email>
  125.       <organization>Rocket Software</organization>
  126.       <roles>
  127.         <role>PMC Member</role>
  128.       </roles>
  129.       <timezone>America/New_York</timezone>
  130.     </developer>
  131.  
  132.   </developers>
  133.  
  134.   <contributors>
  135.  
  136.     <contributor>
  137.       <name>Enver Haase</name>
  138.       <email>enver at convergence.de</email>
  139.     </contributor>
  140.  
  141.     <contributor>
  142.       <name>David Dixon-Peugh</name>
  143.       <email>dixonpeugh at yahoo.com</email>
  144.     </contributor>
  145.  
  146.     <contributor>
  147.       <name>Patrick Beard</name>
  148.       <email>beard at netscape.com</email>
  149.     </contributor>
  150.  
  151.     <contributor>
  152.       <name>Conor MacNeill</name>
  153.       <email>conor at cortexbusiness.com.au</email>
  154.     </contributor>
  155.  
  156.     <contributor>
  157.       <name>Costin Manolache</name>
  158.       <email>cmanolache at yahoo.com</email>
  159.     </contributor>
  160.  
  161.     <contributor>
  162.       <name>Bill Pugh</name>
  163.       <email>bill.pugh at gmail.com</email>
  164.     </contributor>
  165.  
  166.     <contributor>
  167.       <name>First Hop Ltd / Torsten Rueger</name>
  168.     </contributor>
  169.  
  170.     <contributor>
  171.       <name>Jérôme Leroux</name>
  172.     </contributor>
  173.  
  174.     <contributor>
  175.       <name>Mark Roberts</name>
  176.     </contributor>
  177.  
  178.     <contributor>
  179.       <name>Sam Yoon</name>
  180.     </contributor>
  181.   </contributors>
  182.  
  183.   <mailingLists>
  184.     <mailingList>
  185.       <name>BCEL User List</name>
  186.       <subscribe>user-subscribe@commons.apache.org</subscribe>
  187.       <unsubscribe>user-unsubscribe@commons.apache.org</unsubscribe>
  188.       <archive>http://mail-archives.apache.org/mod_mbox/commons-user/</archive>
  189.     </mailingList>
  190.     <mailingList>
  191.       <name>BCEL Developer List</name>
  192.       <subscribe>dev-subscribe@commons.apache.org</subscribe>
  193.       <unsubscribe>dev-unsubscribe@commons.apache.org</unsubscribe>
  194.       <archive>http://mail-archives.apache.org/mod_mbox/commons-dev/</archive>
  195.     </mailingList>
  196.   </mailingLists>
  197.  
  198.   <issueManagement>
  199.     <system>jira</system>
  200.     <url>http://issues.apache.org/jira/browse/BCEL</url>
  201.   </issueManagement>
  202.  
  203.   <scm>
  204.     <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/bcel/trunk</connection>
  205.     <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/bcel/trunk</developerConnection>
  206.     <url>http://svn.apache.org/repos/asf/commons/proper/bcel/trunk</url>
  207.   </scm>
  208.  
  209.   <build>
  210.     <plugins>
  211.       <plugin>
  212.         <groupId>org.apache.rat</groupId>
  213.         <artifactId>apache-rat-plugin</artifactId>
  214.         <version>${commons.rat.version}</version>
  215.         <configuration>
  216.           <excludes>
  217.             <exclude>src/test/resources/**</exclude>
  218.             <exclude>docs/*.bib</exclude>
  219.             <exclude>docs/*.mdl</exclude>
  220.             <exclude>docs/eps/*</exclude>
  221.             <exclude>**/*.eps</exclude>
  222.             <exclude>**/*.bnf</exclude>
  223.             <exclude>**/*.mini</exclude>
  224.             <exclude>TODO.JustIce</exclude>
  225.             <exclude>src/examples/Mini/MiniParser$JJCalls</exclude>
  226.           </excludes>
  227.         </configuration>
  228.       </plugin>
  229.       <!-- Allow Clirr to be run from command line -->
  230.       <plugin>
  231.         <groupId>org.codehaus.mojo</groupId>
  232.         <artifactId>clirr-maven-plugin</artifactId>
  233.         <version>${commons.clirr.version}</version>
  234.         <configuration>
  235.           <minSeverity>${minSeverity}</minSeverity>
  236.         </configuration>
  237.       </plugin>
  238.       <plugin>
  239.         <groupId>org.apache.maven.plugins</groupId>
  240.         <artifactId>maven-jar-plugin</artifactId>
  241.         <executions>
  242.           <execution>
  243.             <goals>
  244.               <goal>test-jar</goal>
  245.             </goals>
  246.           </execution>
  247.         </executions>
  248.         <!-- Temporary fix for BCEL-293, remove this after this has implemented in parent pom -->
  249.         <configuration>
  250.           <archive combine.children="append">
  251.             <manifestEntries>
  252.               <Automatic-Module-Name>org.apache.bcel</Automatic-Module-Name>
  253.             </manifestEntries>
  254.           </archive>
  255.         </configuration>
  256.       </plugin>
  257.       <plugin>
  258.         <artifactId>maven-compiler-plugin</artifactId>
  259.         <version>3.6.1</version>
  260.         <configuration>
  261.           <source>1.8</source>
  262.           <target>1.8</target>
  263.           <fork>true</fork>
  264.           <compilerArguments>
  265.             <Xmaxerrs>10000</Xmaxerrs>
  266.             <Xmaxwarns>10000</Xmaxwarns>
  267.           </compilerArguments>
  268.           <annotationProcessors>
  269.             <!-- <annotationProcessor>org.checkerframework.checker.interning.InterningChecker</annotationProcessor> -->
  270.             <!-- <annotationProcessor>org.checkerframework.checker.nullness.NullnessChecker</annotationProcessor> -->
  271.             <annotationProcessor>org.checkerframework.checker.signature.SignatureChecker</annotationProcessor>
  272.           </annotationProcessors>
  273.           <compilerArgs>
  274.             <arg>-Xbootclasspath/p:${annotatedJdk}</arg>
  275.             <arg>-J-Xbootclasspath/p:${typeAnnotationsJavac}</arg>
  276.             <!-- -AuseDefaultsForUncheckedCode=source causes compilation errors in
  277.                 any library that uses an unannotated part of BCEL. -->
  278.             <!-- <arg>-AuseDefaultsForUncheckedCode=source</arg> -->
  279.             <arg>-Awarns</arg>
  280.           </compilerArgs>
  281.           <testExcludes>
  282.             <testExclude>**/*Benchmark*</testExclude>
  283.           </testExcludes>
  284.         </configuration>
  285.       </plugin>
  286.       <plugin>
  287.         <groupId>org.apache.maven.plugins</groupId>
  288.         <artifactId>maven-source-plugin</artifactId>
  289.         <executions>
  290.           <execution>
  291.             <id>attach-sources</id>
  292.             <goals>
  293.               <goal>jar</goal>
  294.             </goals>
  295.           </execution>
  296.         </executions>
  297.       </plugin>
  298.       <plugin>
  299.         <artifactId>maven-surefire-plugin</artifactId>
  300.         <configuration>
  301.           <systemProperties>
  302.             <property>
  303.               <!-- Suppress the stats, but keep the test as it exercises the code -->
  304.               <name>PerformanceTest.report</name>
  305.               <value>false</value>
  306.             </property>
  307.           </systemProperties>
  308.           <includes>
  309.             <include>**/*TestCase.java</include>
  310.             <include>**/PerformanceTest.java</include>
  311.           </includes>
  312.           <excludes>
  313.             <exclude>**/Abstract*</exclude>
  314.             <!-- Takes rather a long time (especially rt.jar) ; only needs to be done occasionally -->
  315.             <exclude>**/JDKClassDumpTestCase.java</exclude>
  316.           </excludes>
  317.         </configuration>
  318.       </plugin>
  319.       <plugin>
  320.         <artifactId>maven-assembly-plugin</artifactId>
  321.         <configuration>
  322.           <!-- These need to be specified because CP includes a descriptor -->
  323.           <descriptors>
  324.             <descriptor>src/assembly/bin.xml</descriptor>
  325.             <descriptor>src/assembly/src.xml</descriptor>
  326.           </descriptors>
  327.           <tarLongFileMode>gnu</tarLongFileMode>
  328.         </configuration>
  329.       </plugin>
  330.       <plugin>
  331.         <groupId>org.apache.maven.plugins</groupId>
  332.         <artifactId>maven-scm-publish-plugin</artifactId>
  333.         <configuration>
  334.           <ignorePathsToDelete>
  335.             <ignorePathToDelete>javadocs</ignorePathToDelete>
  336.           </ignorePathsToDelete>
  337.         </configuration>
  338.       </plugin>
  339.       <plugin>
  340.         <groupId>org.apache.maven.plugins</groupId>
  341.         <artifactId>maven-checkstyle-plugin</artifactId>
  342.         <version>${checkstyle.plugin.version}</version>
  343.         <configuration>
  344.           <configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
  345.           <!-- Needed to define config_loc -->
  346.           <propertyExpansion>config_loc=${basedir}</propertyExpansion>
  347.           <enableRulesSummary>false</enableRulesSummary>
  348.         </configuration>
  349.       </plugin>
  350.       <plugin>
  351.         <groupId>org.apache.maven.plugins</groupId>
  352.         <artifactId>maven-dependency-plugin</artifactId>
  353.         <version>2.3</version>
  354.         <executions>
  355.           <execution>
  356.             <goals>
  357.               <goal>properties</goal>
  358.             </goals>
  359.           </execution>
  360.         </executions>
  361.       </plugin>
  362.     </plugins>
  363.   </build>
  364.  
  365.   <reporting>
  366.     <plugins>
  367.       <!--
  368.        <plugin>
  369.        <groupId>org.codehaus.mojo</groupId>
  370.        <artifactId>jardiff-maven-plugin</artifactId>
  371.        <configuration>
  372.        <artifacts>
  373.        <artifact>
  374.        <version>5.2</version>
  375.        </artifact>
  376.        <artifact>
  377.        <groupId>bcel</groupId>
  378.        <version>5.1</version>
  379.        </artifact>
  380.        </artifacts>
  381.        </configuration>
  382.        </plugin>
  383.      -->
  384.       <plugin>
  385.         <groupId>org.apache.maven.plugins</groupId>
  386.         <artifactId>maven-checkstyle-plugin</artifactId>
  387.         <version>${checkstyle.plugin.version}</version>
  388.         <configuration>
  389.           <configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
  390.           <!-- Needed to define config_loc -->
  391.           <propertyExpansion>config_loc=${basedir}</propertyExpansion>
  392.           <enableRulesSummary>false</enableRulesSummary>
  393.         </configuration>
  394.         <!-- We need to specify reportSets because 2.9.1 creates two reports -->
  395.         <reportSets>
  396.           <reportSet>
  397.             <reports>
  398.               <report>checkstyle</report>
  399.             </reports>
  400.           </reportSet>
  401.         </reportSets>
  402.       </plugin>
  403.       <plugin>
  404.         <groupId>org.apache.maven.plugins</groupId>
  405.         <artifactId>maven-pmd-plugin</artifactId>
  406.         <version>3.8</version>
  407.         <configuration>
  408.           <targetJdk>${maven.compiler.target}</targetJdk>
  409.           <linkXref>true</linkXref>
  410.           <rulesets>
  411.             <ruleset>${basedir}/src/conf/pmd.xml</ruleset>
  412.           </rulesets>
  413.         </configuration>
  414.       </plugin>
  415.       <plugin>
  416.         <groupId>org.codehaus.mojo</groupId>
  417.         <artifactId>findbugs-maven-plugin</artifactId>
  418.         <version>${commons.findbugs.version}</version>
  419.         <configuration>
  420.           <threshold>Normal</threshold>
  421.           <effort>Default</effort>
  422.           <excludeFilterFile>${basedir}/src/conf/findbugs-exclude-filter.xml</excludeFilterFile>
  423.           <fork>true</fork>
  424.           <jvmArgs>-Duser.language=en</jvmArgs>
  425.         </configuration>
  426.       </plugin>
  427.       <plugin>
  428.         <groupId>org.codehaus.mojo</groupId>
  429.         <artifactId>taglist-maven-plugin</artifactId>
  430.         <version>2.4</version>
  431.         <configuration>
  432.           <tags>
  433.             <tag>TODO</tag>
  434.             <tag>NOPMD</tag>
  435.             <tag>NOTE</tag>
  436.           </tags>
  437.         </configuration>
  438.       </plugin>
  439.       <plugin>
  440.         <groupId>org.apache.rat</groupId>
  441.         <artifactId>apache-rat-plugin</artifactId>
  442.         <version>${commons.rat.version}</version>
  443.         <configuration>
  444.           <excludes>
  445.             <exclude>src/test/resources/**</exclude>
  446.             <exclude>docs/*.bib</exclude>
  447.             <exclude>docs/*.mdl</exclude>
  448.             <exclude>docs/eps/*</exclude>
  449.             <exclude>**/*.eps</exclude>
  450.             <exclude>**/*.bnf</exclude>
  451.             <exclude>**/*.mini</exclude>
  452.             <exclude>TODO.JustIce</exclude>
  453.             <exclude>src/examples/Mini/MiniParser$JJCalls</exclude>
  454.           </excludes>
  455.         </configuration>
  456.       </plugin>
  457.     </plugins>
  458.   </reporting>
  459.  
  460.   <dependencies>
  461.     <dependency>
  462.       <groupId>junit</groupId>
  463.       <artifactId>junit</artifactId>
  464.       <version>4.12</version>
  465.       <scope>test</scope>
  466.     </dependency>
  467.     <dependency>
  468.       <groupId>net.java.dev.jna</groupId>
  469.       <artifactId>jna</artifactId>
  470.       <version>${jna.version}</version>
  471.       <scope>test</scope>
  472.     </dependency>
  473.     <dependency>
  474.       <groupId>net.java.dev.jna</groupId>
  475.       <artifactId>jna-platform</artifactId>
  476.       <version>${jna.version}</version>
  477.       <scope>test</scope>
  478.     </dependency>
  479.     <dependency>
  480.       <groupId>org.apache.commons</groupId>
  481.       <artifactId>commons-lang3</artifactId>
  482.       <version>3.7</version>
  483.       <scope>test</scope>
  484.     </dependency>
  485.     <!-- Annotations from the Checker Framework: nullness, interning, locking, ... -->
  486.     <dependency>
  487.       <groupId>org.checkerframework</groupId>
  488.       <artifactId>checker-qual</artifactId>
  489.       <version>${checkerframework.version}</version>
  490.       <scope>system</scope>
  491.       <systemPath>${env.CHECKERFRAMEWORK}/checker/dist/checker-qual.jar</systemPath>
  492.     </dependency>
  493.     <dependency>
  494.       <groupId>org.checkerframework</groupId>
  495.       <artifactId>checker</artifactId>
  496.       <version>${checkerframework.version}</version>
  497.       <scope>system</scope>
  498.       <systemPath>${env.CHECKERFRAMEWORK}/checker/dist/checker.jar</systemPath>
  499.     </dependency>
  500.     <dependency>
  501.       <groupId>org.checkerframework</groupId>
  502.       <artifactId>compiler</artifactId>
  503.       <version>2.3.2</version>
  504.       <scope>system</scope>
  505.       <systemPath>${env.CHECKERFRAMEWORK}/checker/dist/javac.jar</systemPath>
  506.     </dependency>
  507.     <dependency>
  508.       <groupId>org.checkerframework</groupId>
  509.       <artifactId>jdk8</artifactId>
  510.       <version>${checkerframework.version}</version>
  511.       <scope>system</scope>
  512.       <systemPath>${env.CHECKERFRAMEWORK}/checker/dist/jdk8.jar</systemPath>
  513.     </dependency>
  514.   </dependencies>
  515.  
  516.   <profiles>
  517.     <!-- Profile to use the version of Checker Framework installed locally-->
  518.     <profile>
  519.       <id>checkerframework-local</id>
  520.       <dependencies>
  521.         <dependency>
  522.           <groupId>org.checkerframework</groupId>
  523.           <artifactId>checker-qual</artifactId>
  524.           <version>0.0.0</version>
  525.           <scope>system</scope>
  526.           <systemPath>${CHECKERFRAMEWORK}/checker/dist/checker-qual.jar</systemPath>
  527.         </dependency>
  528.         <dependency>
  529.           <groupId>org.checkerframework</groupId>
  530.           <artifactId>checker</artifactId>
  531.           <version>0.0.0</version>
  532.           <scope>system</scope>
  533.           <systemPath>${CHECKERFRAMEWORK}/checker/dist/checker.jar</systemPath>
  534.         </dependency>
  535.         <dependency>
  536.           <groupId>org.checkerframework</groupId>
  537.           <artifactId>compiler</artifactId>
  538.           <version>0.0.0</version>
  539.           <scope>system</scope>
  540.           <systemPath>${CHECKERFRAMEWORK}/checker/dist/javac.jar</systemPath>
  541.         </dependency>
  542.         <dependency>
  543.           <groupId>org.checkerframework</groupId>
  544.           <artifactId>jdk8</artifactId>
  545.           <version>0.0.0</version>
  546.           <scope>system</scope>
  547.           <systemPath>${CHECKERFRAMEWORK}/checker/dist/jdk8.jar</systemPath>
  548.         </dependency>
  549.       </dependencies>
  550.     </profile>
  551.  
  552.     <!--
  553.        Profile to ignore certain Clirr errors
  554.        To show all the errors, use -P!quieten-clirr or -Dclirr.allDifferences
  555.    -->
  556.     <profile>
  557.       <id>quieten-clirr</id>
  558.       <activation>
  559.         <!-- Enable unless the following is defined -->
  560.         <property>
  561.           <name>!clirr.allDifferences</name>
  562.         </property>
  563.       </activation>
  564.       <properties>
  565.         <!-- It's not possible to undefine this once defined, so we define it in a profile that is normally active -->
  566.         <clirr.ignoredDifferencesFile>${basedir}/src/conf/clirr-ignored-diffs.xml</clirr.ignoredDifferencesFile>
  567.       </properties>
  568.     </profile>
  569.     <!-- Profile to build and run PerformanceTest. Use 'mvn test -Pjdk-rt' -->
  570.     <profile>
  571.       <id>jdk-rt</id>
  572.       <build>
  573.         <plugins>
  574.           <plugin>
  575.             <artifactId>maven-surefire-plugin</artifactId>
  576.             <version>${commons.surefire.version}</version>
  577.             <configuration>
  578.               <includes>
  579.                 <include>**/PerformanceTest.java</include>
  580.               </includes>
  581.             </configuration>
  582.           </plugin>
  583.         </plugins>
  584.       </build>
  585.     </profile>
  586.  
  587.     <!-- Profile to build and run the benchmarks. Use 'mvn test -Pbenchmark', and add '-Dbenchmark=foo' to run only the foo benchmark -->
  588.     <profile>
  589.       <id>benchmark</id>
  590.  
  591.       <properties>
  592.         <skipTests>true</skipTests>
  593.         <benchmark>org.apache</benchmark>
  594.         <jmh.version>1.19</jmh.version>
  595.       </properties>
  596.  
  597.       <dependencies>
  598.         <dependency>
  599.           <groupId>org.openjdk.jmh</groupId>
  600.           <artifactId>jmh-core</artifactId>
  601.           <version>${jmh.version}</version>
  602.           <scope>test</scope>
  603.         </dependency>
  604.  
  605.         <dependency>
  606.           <groupId>org.openjdk.jmh</groupId>
  607.           <artifactId>jmh-generator-annprocess</artifactId>
  608.           <version>${jmh.version}</version>
  609.           <scope>test</scope>
  610.         </dependency>
  611.  
  612.         <dependency>
  613.           <groupId>commons-io</groupId>
  614.           <artifactId>commons-io</artifactId>
  615.           <version>2.6</version>
  616.           <scope>test</scope>
  617.         </dependency>
  618.  
  619.         <dependency>
  620.           <groupId>org.apache.commons</groupId>
  621.           <artifactId>commons-collections4</artifactId>
  622.           <version>4.1</version>
  623.           <scope>test</scope>
  624.         </dependency>
  625.       </dependencies>
  626.  
  627.       <build>
  628.         <plugins>
  629.           <!-- Enable the compilation of the benchmarks -->
  630.           <plugin>
  631.             <artifactId>maven-compiler-plugin</artifactId>
  632.             <version>${commons.compiler.version}</version>
  633.             <configuration combine.self="override">
  634.               <testIncludes>
  635.                 <testInclude>**/*</testInclude>
  636.               </testIncludes>
  637.             </configuration>
  638.           </plugin>
  639.  
  640.           <!-- Hook the benchmarks to the test phase -->
  641.           <plugin>
  642.             <groupId>org.codehaus.mojo</groupId>
  643.             <artifactId>exec-maven-plugin</artifactId>
  644.             <version>1.6.0</version>
  645.             <executions>
  646.               <execution>
  647.                 <id>benchmark</id>
  648.                 <phase>test</phase>
  649.                 <goals>
  650.                   <goal>exec</goal>
  651.                 </goals>
  652.                 <configuration>
  653.                   <classpathScope>test</classpathScope>
  654.                   <executable>java</executable>
  655.                   <arguments>
  656.                     <argument>-classpath</argument>
  657.                     <classpath />
  658.                     <argument>org.openjdk.jmh.Main</argument>
  659.                     <argument>-rf</argument>
  660.                     <argument>json</argument>
  661.                     <argument>-rff</argument>
  662.                     <argument>target/jmh-result.json</argument>
  663.                     <argument>${benchmark}</argument>
  664.                   </arguments>
  665.                 </configuration>
  666.               </execution>
  667.             </executions>
  668.           </plugin>
  669.         </plugins>
  670.       </build>
  671.     </profile>
  672.  
  673.     <profile>
  674.       <id>jdk8-javadoc</id>
  675.       <activation>
  676.         <jdk>[1.8,)</jdk>
  677.       </activation>
  678.       <properties>
  679.         <additionalparam>-Xdoclint:none</additionalparam>
  680.       </properties>
  681.     </profile>
  682.   </profiles>
  683.  
  684. </project>
Add Comment
Please, Sign In to add comment