You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Paulo Motta (JIRA)" <ji...@apache.org> on 2014/09/28 00:52:33 UTC

[jira] [Created] (JCLOUDS-733) ec2-computeservice-spot does not compile because java version is not specified

Paulo Motta created JCLOUDS-733:
-----------------------------------

             Summary: ec2-computeservice-spot does not compile because java version is not specified
                 Key: JCLOUDS-733
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-733
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-examples
            Reporter: Paulo Motta


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)