agmip / acmo

AgMIP ACMO Library
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Unable to Build on Ubuntu 12.04 Instance #5

Open fatlotus opened 10 years ago

fatlotus commented 10 years ago

(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 commented 10 years ago

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 https://github.com/agmip/acmo/issues/5.

frostbytten commented 10 years ago

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 commented 10 years ago

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

frostbytten commented 10 years ago

The fix should be applied in the develop branch.