Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Build on Ubuntu 12.04 Instance #5

Open
fatlotus opened this issue Nov 14, 2013 · 4 comments
Open

Unable to Build on Ubuntu 12.04 Instance #5

fatlotus opened this issue Nov 14, 2013 · 4 comments

Comments

@fatlotus
Copy link

(I'm forwarding this request from Ketan Maheshwari, one of the developers on the Chicago side of things.)

In a clean download of ACMO on Ubuntu 12.04 running in AWS, mvn install fails, and outputs:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project acmo: Compilation failure: Compilation failure:
[ERROR] /home/galaxy/acmo/src/main/java/org/agmip/acmo/util/AcmoUtil.java:[34,59] error: generics are not supported in -source 1.3
[ERROR]
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] /home/galaxy/acmo/src/main/java/org/agmip/acmo/util/AcmoUtil.java:[45,45] 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

This is using both Java 6 and 7. Any thoughts?

@frostbytten
Copy link
Member

Jeremy and Ketan,

It might be the version of Maven being used (Maven 2 vs Maven 3)? Another issue could be how the maven file is working. I can look into it, but it you could send the whole -X maven debugging log, that would help.

Thanks,

Chris V.

Jeremy Archer wrote:

(I'm forwarding this request from Ketan Maheshwari, one of the
developers on the Chicago side of things.)

In a clean download of ACMO on Ubuntu 12.04 running in AWS, |mvn
install| fails, and outputs:

|[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project acmo: Compilation failure: Compilation failure:
[ERROR] /home/galaxy/acmo/src/main/java/org/agmip/acmo/util/AcmoUtil.java:[34,59] error: generics are not supported in -source 1.3
[ERROR]
[ERROR](use -source 5 or higher to enable generics)
[ERROR] /home/galaxy/acmo/src/main/java/org/agmip/acmo/util/AcmoUtil.java:[45,45] 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
|

This is using both Java 6 and 7. Any thoughts?


Reply to this email directly or view it on GitHub
#5.

@frostbytten
Copy link
Member

After further investigation, I realized that the pom.xml has a version
requirement but does not implement it in the settings. Maven seems to be
using an older version of Java (since it calls it's own Java instance).

@fatlotus
Copy link
Author

Oh, er... okay- how do we fix it?

@frostbytten
Copy link
Member

The fix should be applied in the develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants