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

Bug 336748

Summary: Importing an existing Maven project with a parent and a maven-bundle-plugin gives a NullPointerException in DefaultPluginDescriptorCache
Product: z_Archived Reporter: Edward Sargisson <esarge>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Stacktrace
none
Reproduction archive none

Description Edward Sargisson CLA 2011-02-09 14:03:38 EST
Build Identifier: 20100218-1602

Expected result:
The project should import without error and should contain the Maven Dependencies classpath container.

Actual Result:
NullPointerException and no Maven Dependencies classpath container.

Workaround:
Use m2eclipse 0.10.

Reproducible: Always

Steps to Reproduce:
1. In com.example run 'mvn install'. The 'The JAR is empty' error is expected.
2. In Eclipse, with m2eclipse 0.12.1, import an Existing Maven Project.
3. Select com.example/com.example.configuration.bus
Comment 1 Edward Sargisson CLA 2011-02-09 14:05:39 EST
Created attachment 188614 [details]
Stacktrace
Comment 2 Edward Sargisson CLA 2011-02-09 14:07:26 EST
Created attachment 188615 [details]
Reproduction archive
Comment 3 Edward Sargisson CLA 2011-02-09 14:08:44 EST
To help Google find this defect:
The NullPointerException is at:
org.apache.maven.plugin.DefaultPluginDescriptorCache$CacheKey.<init>(DefaultPluginDescriptorCache.java:165)
Comment 4 Igor Fedorenko CLA 2011-02-09 15:13:07 EST
This is a duplicate of https://issues.sonatype.org/browse/MNGECLIPSE-2555 and has been fixed in 0.13.0 already. Feel free to reopen this bugreport if you still see the problem with recent m2e 0.13.0 builds
Comment 5 Denis Roy CLA 2021-04-19 13:25:02 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/