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

Build Failure #25

Open
jschwarzwalder opened this issue Nov 2, 2018 · 2 comments
Open

Build Failure #25

jschwarzwalder opened this issue Nov 2, 2018 · 2 comments

Comments

@jschwarzwalder
Copy link

I followed these instructions from the Getting Started with the JAVA SDK https://aws.amazon.com/developers/getting-started/java/:

Download the Sample Project
git clone https://github.com/awslabs/aws-java-sample.git

From the aws-java-sample directory, run:
mvn clean compile exec:java

I however get the following build error:


[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\jamisch\Documents\GitHub\aws-java-sample\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  19.220 s
[INFO] Finished at: 2018-11-01T17:36:06-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project aws-java-sample: Co
[ERROR] Source option 5 is no longer supported. Use 6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[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
@montynet
Copy link

montynet commented Jan 6, 2019

You can add these properties to your pom.
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>

@MaksimDanilau
Copy link

@montynet Thanks, it helps!
@jschwarzwalder It caused by inappropriate Java version. Java 8 is suitable.
I think this issue can be closed.

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

3 participants