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

Bug 350353

Summary: maven-compiler-plugin ignores source and target config when values are 5 or 6
Product: z_Archived Reporter: Matthew Sandoz <matthew_sandoz>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Windows Vista   
Whiteboard:

Description Matthew Sandoz CLA 2011-06-25 09:56:58 EDT
Build Identifier: 20110615-0604

Source or target version configuration does not recognize 5 or 6. JRE 1.4 runtime libraries are referenced in the eclipse project. Switching version to 1.5 or 1.6 solves the problem but this is not documented and is extremely confusing, and could cause someone who is less familiar with Eclipse to start trying to change the classpaths manually, providing a poor user experience.

Reproducible: Always

Steps to Reproduce:
1. import a maven project with source set in maven-compiler plugin to 5 or 6
2. look at the JRE system library setting. It will be JavaSE1.4
Comment 1 Igor Fedorenko CLA 2011-08-03 11:24:04 EDT
Somebody provided a patch under another bugzilla.

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