Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350159 - NullPointer trying to enable Maven on some projects
Summary: NullPointer trying to enable Maven on some projects
Status: CLOSED DUPLICATE of bug 347602
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 11:40 EDT by Ben Tatham CLA
Modified: 2021-04-19 13:23 EDT (History)
0 users

See Also:


Attachments
NullPointerException (2.72 KB, text/plain)
2011-06-23 11:45 EDT, Ben Tatham CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Tatham CLA 2011-06-23 11:40:14 EDT

    
Comment 1 Ben Tatham CLA 2011-06-23 11:45:03 EDT
Created attachment 198479 [details]
NullPointerException

An internal error occurred during: "Enabling Maven Dependency Management".
java.lang.NullPointerException

I attached the full NPE from the Error Log view.

The project is a bit complex, with many levels of parent poms of which some add <pluginExecution> definitions to the lifecycleMappingMetadata.  Looking at the effective pom, it seems that those configurations do not accumulate.  Standard maven plugin configuration would dictate that since there is only one <lifecycleMappingMetadata> parameter to be passed to the lifecycle-mapping plugin, that they would not accumulate, but that means that all projects must redefine the same pluginExecutions.

Eclipse IDE for Java Developers
Version: Indigo Release
Build id: 20110615-0604
M2E 1.0.0.20110607-2117
Comment 2 Ben Tatham CLA 2011-06-23 12:05:13 EDT

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