aws-samples / aws-samples/aws-java-sample

Build Failure

Offen
#25 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
241
Forks
345
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by running `mvn clean compile exec:java` in the cloned aws-java-sample project and inspect the Maven compiler configuration responsible for the source and target versions. Done means the sample compiles and the command completes without the reported Java build failure.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.