[ARTEMIS-861] Artemis 1.5 compilation fails with IBM JDK

Issue: https://issues.apache.org/jira/browse/ARTEMIS-861
This commit is contained in:
Ingo Weiss 2017-04-10 09:40:12 +01:00 committed by Clebert Suconic
parent bb6a418374
commit e6f757e44f
2 changed files with 63 additions and 0 deletions

View File

@ -47,6 +47,38 @@
</dependency>
</dependencies>
<profiles>
<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"></configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<resources>
<resource>

31
pom.xml
View File

@ -688,6 +688,37 @@
<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"></configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jdk18</id>
<activation>