This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 219103 - Creating a Maven-based platform application in the parent folder of another
Summary: Creating a Maven-based platform application in the parent folder of another
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-27 07:40 UTC by mienamoo
Modified: 2012-09-27 07:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2012-09-27 07:40:38 UTC
NetBeans IDE 7.3 Beta (Build 201209232010)
JDK 7u7 64-bit

During testing I created a Maven-based platform application. And accidentally created another with the same name inside the parent folder of the first. This caused the project creation to fail with the message:

The build could not read 1 project -> [Help 1]
  
  The project com.test:mavenproject3-parent:1.0-SNAPSHOT (C:\Users\HPellissier\Documents\NetBeansProjects\mavenproject3\mavenproject3\pom.xml) has 1 error
    'parent.artifactId' must be changed, the parent element cannot have the same groupId:artifactId as the project. @ line 5, column 17

Which is true since now the first parent is also the parent of the new application and they have the same groupId:artifactId. This is rather an edge case, but it does bring up the question whether the parent's parent should have been set in that case at all.
Comment 1 Milos Kleint 2012-09-27 07:44:18 UTC
well, the setting of the parent for generated projects is performed by maven-archetype-plugin, not by us.

In most real life scenarios it's a non issue, as the default project name is not kept in the vast majority of usages.