Added Maven profile to define the build toolchain
diff --git a/pom.xml b/pom.xml
index 830eb6c..dd1689d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -182,6 +182,7 @@
   </modules>
 
   <properties>
+    <jdk.version>1.7</jdk.version>
     <aopalliance.bundle.version>1.0_5</aopalliance.bundle.version>
     <bcprov.version>1.51</bcprov.version>
     <easymock.version>3.0</easymock.version>
@@ -598,4 +599,32 @@
     </repository>
   </repositories>
 
+  <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>