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

Bug 357364

Summary: Java Compiler version not correctly configured for target "5" or "6"
Product: z_Archived Reporter: Anders Hammar <anders.g.hammar>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Anders Hammar CLA 2011-09-12 07:22:14 EDT
If I in the pom configured this:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <configuration>
    <source>6</source>
    <target>6</target>
  </configuration>
</plugin>

m2e does not configure the JDK version correctly. But if I specify "1.6" it does.
Bot "6" and "1.6" is valid for m-compiler-p and m2e should handle that. (Also, "5" and "1.5" is valid.)
Comment 1 Igor Fedorenko CLA 2011-09-12 07:26:38 EDT
This should be fixed in the latest build towards Indigo SR1 and in Juno M1+. You can also install a build with the fix directly from [1] 

[1] http://download.eclipse.org/technology/m2e/milestones/1.0/1.0.100.20110804-1717

*** This bug has been marked as a duplicate of bug 353781 ***
Comment 2 Denis Roy CLA 2021-04-19 13:22:47 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/