mirror of https://github.com/apache/jclouds.git
Add Jenkins profile to use Maven toolchains
This commit is contained in:
parent
b93270aef2
commit
530dbd3de8
|
@ -1375,5 +1375,59 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>jenkins</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- make sure jclouds is built with the right JDK -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-toolchains-plugin</artifactId>
|
||||||
|
<version>1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>toolchain</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<toolchains>
|
||||||
|
<jdk>
|
||||||
|
<version>1.7</version>
|
||||||
|
<vendor>oracle</vendor>
|
||||||
|
</jdk>
|
||||||
|
</toolchains>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>jenkins-jdk8</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<!-- make sure jclouds is built with the right JDK -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-toolchains-plugin</artifactId>
|
||||||
|
<version>1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>toolchain</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
<configuration>
|
||||||
|
<toolchains>
|
||||||
|
<jdk>
|
||||||
|
<version>1.8</version>
|
||||||
|
<vendor>openjdk</vendor>
|
||||||
|
</jdk>
|
||||||
|
</toolchains>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue