Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
If I run mvn install from a freshly downloaded repository, I get the following error:
[INFO] Compiling 1 source file to /local/workspace/jclouds-examples/ec2-computeservice-spot/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.411s
[INFO] Finished at: Sat Sep 27 19:42:06 BRT 2014
[INFO] Final Memory: 9M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project ec2-computeservice-spot: Compilation failure: Compilation failure:
[ERROR] /local/workspace/jclouds-examples/ec2-computeservice-spot/src/main/java/org/jclouds/examples/ec2/spot/MainApp.java:[66,24] error: generics are not supported in -source 1.3
[ERROR]
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] /local/workspace/jclouds-examples/ec2-computeservice-spot/src/main/java/org/jclouds/examples/ec2/spot/MainApp.java:[107,32] error: for-each loops are not supported in -source 1.3
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
In order to fix, we need to specify the java source version on the pom.xml