Added Maven profile to define the build toolchain
diff --git a/project/pom.xml b/project/pom.xml
index df4155b..be8a1f6 100644
--- a/project/pom.xml
+++ b/project/pom.xml
@@ -65,6 +65,7 @@
</developers>
<properties>
+ <jdk.version>1.7</jdk.version>
<!-- Karaf Version Dependencies -->
<karaf.version>2.3.11</karaf.version>
<pax.url.version>1.3.7</pax.url.version>
@@ -242,4 +243,33 @@
</plugins>
</build>
+ <profiles>
+ <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>${jdk.version}</version>
+ </jdk>
+ </toolchains>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>