Skip to content

Build failed jdk 11 #2

@nirvana86

Description

@nirvana86

mvn package -Dmaven.test.skip=true

[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ gitCliShell ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ gitCliShell ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to C:\GitCliShell\GitCliShell\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.010 s
[INFO] Finished at: 2020-11-03T20:31:05+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project gitCliShell: Fatal error compiling: error: invalid target release: 14 -> [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/MojoExecutionException

Solved with <java.version>11</java.version> in the pom.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions