Attempt to fix toolchain JDK version for Jenkins builds (JDK10 is OK, JDK9 still failing)
</plugins>
</build>
<profiles>
+ <profile><!-- used to avoid integration test failures for devs that have no toolchain config -->
+ <id>toolchain-java9</id>
+ <activation>
+ <jdk>9</jdk>
+ <property><!-- Jenkins -->
+ <name>env.BUILD_NUMBER</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-toolchains-plugin</artifactId>
+ <version>1.1</version>
+ <configuration>
+ <toolchains>
+ <jdk>
+ <version>1.9</version>
+ </jdk>
+ </toolchains>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>toolchain</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile><!-- used to avoid integration test failures for devs that have no toolchain config -->
<id>toolchain</id>
<activation>
- <jdk>[9,)</jdk>
+ <jdk>[10,)</jdk>
<property><!-- Jenkins -->
<name>env.BUILD_NUMBER</name>
</property>
