Skip to content

Instantly share code, notes, and snippets.

@phoenix24
Created October 4, 2019 06:54
Show Gist options
  • Save phoenix24/48e11cb65e4b67193635c4dc35bf5b72 to your computer and use it in GitHub Desktop.
Save phoenix24/48e11cb65e4b67193635c4dc35bf5b72 to your computer and use it in GitHub Desktop.
apache james build error
➜ james-project git:(master) ✗ mvn clean compile package -DskipTests
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:00 min
[INFO] Finished at: 2019-10-04T12:21:04+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project james-server-util: Fatal error compiling: invalid flag: --release -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :james-server-util
@mxsolid
Copy link

mxsolid commented Jan 2, 2020

In your pom.xml file, simply remove the tag <release>8</release> from your maven-compiler-plugin configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment