Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357364 - Java Compiler version not correctly configured for target "5" or "6"
Summary: Java Compiler version not correctly configured for target "5" or "6"
Status: CLOSED DUPLICATE of bug 353781
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 07:22 EDT by Anders Hammar CLA
Modified: 2021-04-19 13:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/