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

maven build instructions should address common distribution requirements #42

Closed
displague opened this issue Mar 30, 2015 · 5 comments
Closed

Comments

@displague
Copy link
Contributor

Are there more complete build instructions that can be provided for people that don't live and breath Java builds?

On a vanilla debian install,apt-get install default-jdk maven followed by cloning the repo and running maven clean install yields the following errors: https://gist.github.com/displague/702f0405bfa932be5778

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project CFLint: Compilation failure: Compilation failure:
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/config/ConfigUtils.java:[47,2] error: annotations are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable annotations)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/config/ConfigUtils.java:[48,15] error: generics are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/config/ConfigUtils.java:[78,28] error: for-each loops are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable for-each loops)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/plugins/core/QueryParamChecker.java:[18,2] error: annotations are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable annotations)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/plugins/core/QueryParamChecker.java:[23,39] error: for-each loops are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable for-each loops)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/plugins/core/VarScoper.java:[19,2] error: annotations are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable annotations)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/plugins/core/VarScoper.java:[50,4] error: generics are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/plugins/core/VarScoper.java:[63,31] error: for-each loops are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable for-each loops)
[ERROR] /home/displague/src/CFLint/src/main/java/com/cflint/CFLint.java:[71,5] error: generics are not supported in -source 1.3

... And more in the gist

@ryaneberly
Copy link
Contributor

Java 1.3 is more than a bit out-dated. CFLint requires Java 6 or higher. v 7 or 8 preferred.

@displague
Copy link
Contributor Author

The Java I get from default-jdk is openjdk-1.7. I also tried openjdk-1.8.

ryaneberly added a commit that referenced this issue Apr 1, 2015
@ryaneberly
Copy link
Contributor

Can you try again please? Thanks.

@displague
Copy link
Contributor Author

BUILD SUCCESS with both OpenJDK 1.7 and 1.8 -- thanks!

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