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

Bug 337010

Summary: Better detect java projects
Product: z_Archived Reporter: Pascal Rapicault <pascal>
Component: m2eAssignee: Igor Fedorenko <igor>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: julien.henry, vladt, youngm
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Pascal Rapicault CLA 2011-02-11 16:45:44 EST
When a packaging type is unknown, we should give the user the opportunity to import it as a Java Project so the browsing of the code is still possible.
This should be proposed as part of the import workflow (still to be worked on) and also as a quick fix.

The quick fix should cause the addition of the lifecycle mapping metadata in the pom so this can be shared with others.
Comment 1 Igor Fedorenko CLA 2011-02-24 09:12:10 EST
Underlying User Story. As a user, when I import a java project with custom packaging type (nexus-plugin, hpi, sonar-plugin, etc) I expect Eclipse workspace projects to have JDT nature, source folders and dependencies configured similarly to packaging=jar.

Internally, we need to change how m2e detects java projects to rely on presence of maven-compiler-plugin with compilerId=javac (the default) in project execution plan. This should provide expected behaviour for vast majority of projects m2e is able to support without custom lifecycle mapping strategy implementation.
Comment 2 Igor Fedorenko CLA 2011-02-24 09:12:59 EST
*** Bug 338084 has been marked as a duplicate of this bug. ***
Comment 3 Igor Fedorenko CLA 2011-02-26 17:59:28 EST
Implemented. m2e enables java functionality based on presence maven-compiler-plugin with compilerId=javac. This default behaviour can be overridden for individual projects and for specific packaging types.

http://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=83bba72a8c3e6702df1f642be342c73296444796
Comment 4 Paul Tatavu CLA 2011-03-01 14:07:24 EST
Verified
Comment 5 Denis Roy CLA 2021-04-19 13:25:08 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/