Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 547055

Summary: Maven jar compiler plugin doesn't work!
Product: [Eclipse Project] JDT Reporter: Dorus Blanken <dorusblanken>
Component: CoreAssignee: Stephan Herrmann <stephan.herrmann>
Status: CLOSED NOT_ECLIPSE QA Contact:
Severity: blocker    
Priority: P3 CC: stephan.herrmann
Version: 4.12   
Target Milestone: 4.12 M3   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Dorus Blanken CLA 2019-05-07 13:00:43 EDT
After i try to compile the maven project using: Run as > maven build...>
Goals: compile
rest of the configurator remaining unchanged,
i get this bug:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project no: Compilation failure: Compilation failure: 
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 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

I tried working around it and even tested the compiler on a new unchanged maven project and i get the same error!
Comment 1 Stephan Herrmann CLA 2019-05-07 14:08:54 EDT
Looks like an issue with maven, maven-compiler-plugin, and possibly javac.

I'm closing as NOT_ECLIPSE, since I don't see any hint that JDT is involved.

BTW: I don't think, any maintainer of any of the tools involved still actively provides support for Java 5, so my advice is to upgrade to Java 11 or *at least* Java 8. If that is not possible, ensure that *all* tools involved in your build are used in versions from the time when Java 5 was still maintained.