NO-JIRA cleanup pom
diff --git a/pom.xml b/pom.xml
index 0057afa..d27ab3a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,81 +123,6 @@
<profiles>
<profile>
- <id>M2E</id>
- <activation>
- <property>
- <name>m2e.version</name>
- </property>
- </activation>
- <properties>
- <javac-compiler-id>javac</javac-compiler-id>
- </properties>
- </profile>
- <!-- Google Error Prone has issues with IBM JDK 8 -->
- <!-- See ARTEMIS-861 -->
- <profile>
- <id>ibm-jdk8</id>
- <activation>
- <jdk>1.8</jdk>
- <property>
- <name>java.vendor</name>
- <value>IBM Corporation</value>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <additionalparam>-Xdoclint:none</additionalparam>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <!-- version 3.2 is having problems with the APT processor resulting in
- java.lang.IllegalStateException: endPosTable already set -->
- <version>3.1</version>
- <configuration combine.self="override" />
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <systemPropertyVariables>
- <com.ibm.jsse2.overrideDefaultTLS>true</com.ibm.jsse2.overrideDefaultTLS>
- </systemPropertyVariables>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>jdk18</id>
- <activation>
- <jdk>1.8</jdk>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <additionalparam>-Xdoclint:none</additionalparam>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>dev</id>
- <properties>
- <skipStyleCheck>false</skipStyleCheck>
- <skipLicenseCheck>false</skipLicenseCheck>
- </properties>
- </profile>
- <profile>
<id>distro</id>
<activation>
<activeByDefault>true</activeByDefault>
@@ -215,7 +140,7 @@
<executions>
<execution>
<id>build</id>
- <phase>compile</phase>
+ <phase>generate-sources</phase>
<goals>
<goal>exec</goal>
</goals>
@@ -261,323 +186,11 @@
</plugins>
</build>
</profile>
- <!-- This profile generates jacoco coverage files. To generate html report use "-Pjacoco-generate-report" -->
- <profile>
- <id>jacoco</id>
- <dependencies>
- <dependency>
- <groupId>org.jacoco</groupId>
- <artifactId>org.jacoco.core</artifactId>
- <version>${version.org.jacoco}</version>
- </dependency>
- </dependencies>
- <properties>
-
- <!-- Property set by Jacoco plugin -->
- <jacoco.agent />
-
- <activemq-surefire-argline>
- -Djava.library.path="${activemq.basedir}/artemis-native/bin"
- @{jacoco.agent} -Djacoco.agent=@{jacoco.agent}
- </activemq-surefire-argline>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>jacoco-prepare</id>
- <phase>validate</phase>
- <goals>
- <goal>prepare-agent</goal>
- </goals>
- <configuration>
- <destFile>${project.build.directory}/jacoco.exec</destFile>
- <!-- Jacoco sets this property with agent configuration.
- This property is passed to maven-surefire-plugin -->
- <propertyName>jacoco.agent</propertyName>
- </configuration>
- </execution>
- <execution>
- <id>merge</id>
- <phase>none</phase>
- <goals>
- <goal>merge</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <fileSets>
- <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
- <directory>${activemq.basedir}</directory>
- <includes>
- <include>**/*.exec</include>
- </includes>
- </fileSet>
- </fileSets>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- This profile generates html report from jacoco coverage files. Use "-Pjacoco" profile to generate coverage. -->
- <profile>
- <id>jacoco-generate-report</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <!-- Copy jacoco ant jar. This is needed to generate jacoco report with maven-antrun-plugin -->
- <execution>
- <goals>
- <goal>copy</goal>
- </goals>
- <phase>process-test-resources</phase>
- <inherited>false</inherited>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.jacoco</groupId>
- <artifactId>org.jacoco.ant</artifactId>
- <version>${version.org.jacoco.plugin}</version>
- </artifactItem>
- </artifactItems>
- <stripVersion>true</stripVersion>
- <outputDirectory>${project.build.directory}/jacoco-jars</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <executions>
- <execution>
- <phase>post-integration-test</phase>
- <goals><goal>run</goal></goals>
- <inherited>false</inherited>
- <configuration>
- <target>
- <property name="result.report.dir" location="target/jacoco-report" />
- <taskdef name="report" classname="org.jacoco.ant.ReportTask">
- <classpath path="${project.build.directory}/jacoco-jars/org.jacoco.ant.jar" />
- </taskdef>
- <echo>Creating JaCoCo ActiveMQ Artemis test coverage reports...</echo>
- <report>
- <executiondata>
- <fileset dir="${basedir}">
- <include name="**/target/jacoco.exec" />
- </fileset>
- </executiondata>
- <structure name="JaCoCo ActiveMQ Artemis">
- <classfiles>
- <fileset dir="${activemq.basedir}/target/classes" />
- </classfiles>
- <sourcefiles encoding="UTF-8">
- <fileset dir="${activemq.basedir}/src/main/java" />
- </sourcefiles>
- </structure>
- <html destdir="\${result.report.dir}" />
- <xml destfile="\${result.report.dir}/report.xml" />
- </report>
- </target>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.jacoco</groupId>
- <artifactId>org.jacoco.ant</artifactId>
- <version>${version.org.jacoco.plugin}</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
-
<build>
<pluginManagement>
<plugins>
<plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.rat</groupId>
- <artifactId>apache-rat-plugin</artifactId>
- <versionRange>[0.12,)</versionRange>
- <goals>
- <goal>check</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore />
- </action>
- </pluginExecution>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>
- org.apache.servicemix.tooling
- </groupId>
- <artifactId>
- depends-maven-plugin
- </artifactId>
- <versionRange>
- [1.2,)
- </versionRange>
- <goals>
- <goal>
- generate-depends-file
- </goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore />
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.4.1</version>
- <executions>
- <execution>
- <id>enforce-maven</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireMavenVersion>
- <version>3.1</version>
- </requireMavenVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javacc-maven-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <id>javacc</id>
- <goals>
- <goal>javacc</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <!-- version 3.2 is having problems with the APT processor resulting in
- java.lang.IllegalStateException: endPosTable already set -->
- <version>3.1</version>
- <!-- Enable Google's Error-Prone https://github.com/google/error-prone -->
- <configuration>
- <showWarnings>true</showWarnings>
- <forceJavacCompilerUse>true</forceJavacCompilerUse>
- <compilerId>${javac-compiler-id}</compilerId>
- <compilerArgs>
- <arg>-Xep:MissingOverride:ERROR</arg>
- <arg>-Xep:NonAtomicVolatileUpdate:ERROR</arg>
- <arg>-Xep:SynchronizeOnNonFinalField:ERROR</arg>
- <arg>-Xep:StaticAccessedFromInstance:ERROR</arg>
- <arg>-Xep:SynchronizeOnNonFinalField:ERROR</arg>
- <arg>-Xep:WaitNotInLoop:ERROR</arg>
- <arg>-Xdiags:verbose</arg>
- </compilerArgs>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-compiler-javac-errorprone</artifactId>
- <version>2.8</version>
- </dependency>
- <dependency>
- <groupId>com.google.errorprone</groupId>
- <artifactId>error_prone_core</artifactId>
- <version>2.0.9</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.5</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.9</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-rar-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${version.maven.jar.plugin}</version>
- </plugin>
- <plugin>
- <groupId>net.sf.maven-sar</groupId>
- <artifactId>maven-sar-plugin</artifactId>
- <version>1.0</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.3</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.2.0</version>
- </plugin>
- <plugin>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>${jetty.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.7</version>
- </plugin>
-
- <plugin>
- <inherited>true</inherited>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.2.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>verify</phase>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
@@ -591,64 +204,12 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.18.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<configuration>
<createChecksum>true</createChecksum>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <version>3.6</version>
- <configuration>
- <linkXRef>true</linkXRef>
- <minimumTokens>100</minimumTokens>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.8</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>xml-maven-plugin</artifactId>
- <version>1.0</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <configuration />
- <executions>
- <execution>
- <goals>
- <goal>clean</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.6</version>
- </plugin>
- <!-- Many examples use it -->
- <plugin>
- <groupId>org.apache.activemq</groupId>
- <artifactId>artemis-maven-plugin</artifactId>
- <version>${project.version}</version>
- </plugin>
- <plugin>
- <groupId>org.jacoco</groupId>
- <artifactId>jacoco-maven-plugin</artifactId>
- <version>${version.org.jacoco.plugin}</version>
- </plugin>
</plugins>
</pluginManagement>
<resources>
@@ -658,37 +219,6 @@
</resources>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>enforce-java</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <version>1.8.0</version>
- </requireJavaVersion>
- </rules>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <createChecksum>true</createChecksum>
- </configuration>
- </plugin>
- <plugin>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
@@ -697,53 +227,6 @@
<version>2.2</version>
</plugin>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.17</version>
- <dependencies>
- <dependency>
- <groupId>com.github.sevntu-checkstyle</groupId>
- <artifactId>sevntu-checkstyle-maven-plugin</artifactId>
- <version>1.24.0</version>
- </dependency>
- <dependency>
- <groupId>com.puppycrawl.tools</groupId>
- <artifactId>checkstyle</artifactId>
- <version>7.7</version>
- </dependency>
- </dependencies>
- <configuration>
- <skip>${skipStyleCheck}</skip>
- <configLocation>${activemq.basedir}/etc/checkstyle.xml</configLocation>
- <suppressionsLocation>${activemq.basedir}/etc/checkstyle-suppressions.xml</suppressionsLocation>
- <failsOnError>false</failsOnError>
- <failOnViolation>true</failOnViolation>
- <consoleOutput>true</consoleOutput>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- </configuration>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>2.5.2</version>
- <configuration>
- <excludeFilterFile>${user.dir}/etc/findbugs-exclude.xml</excludeFilterFile>
- <findbugsXmlOutput>true</findbugsXmlOutput>
- <xmlOutput>true</xmlOutput>
- <effort>Max</effort>
- <failOnError>false</failOnError>
- </configuration>
- </plugin>
- <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.12</version>
@@ -909,26 +392,6 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.17</version>
- <configuration>
- <configLocation>${activemq.basedir}/etc/checkstyle.xml</configLocation>
- <suppressionsLocation>${activemq.basedir}/etc/checkstyle-suppressions.xml</suppressionsLocation>
- <failsOnError>false</failsOnError>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>2.5.2</version>
- <configuration>
- <excludeFilterFile>${user.dir}/etc/findbugs-exclude.xml</excludeFilterFile>
- <effort>Max</effort>
- <failOnError>false</failOnError>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>