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

Bug 463702

Summary: Wrong parent in multi-module archetype
Product: z_Archived Reporter: Rick Poleshuck <RickPoleshuck>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3 CC: fbricon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Rick Poleshuck CLA 2015-04-01 11:59:06 EDT
When a multi-module project is created from a multi-module project, the specified parent poms in the modules are ignored without warning. The archetype works fine in mvn 3.2.5.

The error occurs from File->New->Project...->Maven Project

The result from mvn command line is something like...
Root pom.xml
   <groupId>com.company</groupId>
   <artifactId>root</artifactId>
   <packaging>pom</packaging>

Module pom.xml
   <parent>
      <groupId>com.company</groupId>
      <artifactId>parent-module</artifactId>
      <relativePath></relativePath>
   </parent>

The result from Eclipse m2e is something like...
Root pom.xml
   <groupId>com.company</groupId>
   <artifactId>root</artifactId>
   <packaging>pom</packaging>

Module pom.xml
   <parent>
      <groupId>com.company</groupId>
      <artifactId>root</artifactId>
      <relativePath>..</relativePath>
   </parent>
Comment 1 Fred Bricon CLA 2015-04-01 12:13:56 EDT
This bug was fixed in m2e 1.6 M6, as part of Bug #336461. You can install it from the Milestones update site [1], or try the latest developer build for Eclipse Mars [2]

[1] https://www.eclipse.org/m2e/m2e-downloads.html
[2] https://www.eclipse.org/downloads/index-developer.php

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