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 243451 - parent section not updated after parent artifactId changed through Rename dialogue
Summary: parent section not updated after parent artifactId changed through Rename dia...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-01 13:50 UTC by ionuion
Modified: 2016-07-07 08:39 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ionuion 2014-04-01 13:50:46 UTC
Environment:
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.9.2 running on x86_64; UTF-8; en_US (nb)

Steps to reproduce:
1. Create a new directory /tmp/projectholder
2. In NetBeans IDE create a new pom maven project (Categories:Maven, Projects: POM project)
Project Name: mavenproject1
Project Location: /tmp/projectholder
Leave the default values for the rest of the fields

3. Create a new jar maven project as a child of mavenproject1 (Categories: Maven, Projects: Java Application)
Project Name: childproject
Project Location: /tmp/projectholder/mavenproject1/
Leave the default values for the rest of the fields.
As a result, childproject's pom.xml contains a parent section that points to mavenproject1 as the parent, as expected

4. Rename mavenproject1. Right click the project node, Rename. Change Display name, artifactId and the folder to parentproject.

Expected result:
The parent section in childproject's pom.xml should be updated to 
<artifactId>parentproject</artifactId>

Actual result:
the parent section in childproject's pom.xml stays unchanged
<artifactId>mavenproject1</artifactId>
Comment 1 Milos Kleint 2014-04-01 15:13:16 UTC
this was never really implemented and therefore cannot be a P1 bug. 
The only modification we currently do to external projects (read projects other than the currently modified one) is to modify the parent's modules section when the child changes folder.
Comment 2 Martin Balin 2016-07-07 08:39:20 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss