[ https://issues.apache.org/jira/browse/MNG-6969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165475#comment-17165475 ]
Dennis Lundberg commented on MNG-6969: -------------------------------------- Hi, If you target Java 9 or higher you might need to specify a newer version of maven-compiler-plugin. Read more here: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html#java-9-or-later > mvn clean install fails for helloworld projects with java-11 > ------------------------------------------------------------ > > Key: MNG-6969 > URL: https://issues.apache.org/jira/browse/MNG-6969 > Project: Maven > Issue Type: Bug > Components: Dependencies > Affects Versions: 3.6.3 > Reporter: solo turn > Priority: Major > > mvn clean install fails for hello world projects with java-11 with an error > caused by using a too old compiler plugin: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) > on project deploy-at-end-one: Compilation failure: Compilation failure: > [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] > > -- This message was sent by Atlassian Jira (v8.3.4#803005)