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.
Product Version: NetBeans IDE Dev (Build 200808190201) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) -create new project PRJ1 (Maven > Maven Project > Maven Quickstart Archetype) -in Projects view invoke popup menu on this project's top node and invoke Rename... -The Rename Project dialog appears -->> The Project Name field contains PRJ1(jar) so that when a user wants to rename it to PRJ1_NEW then it is common to add _NEW to the end. But in this case it is renamed to PRJ1(jar)_NEW. Even if Also Rename Project Folder is checked then the project folder is renamed from .../PRJ1 to .../PRJ1(jar)_NEW
Created attachment 67773 [details] Screenshot attached...
well, I think I've already checked this one before. The problem is that the rename infrastructure is making wrong assumptions. 1. The project name is a vaguely defined thing, boils down to ProjectInformation.getDisplayName() 2. then in turn it assumes the displayname equals the folder that the project resides in. the display name in maven project is not derived from the folder name (as is in j2se project), but from <name> element in project pom. The packaging in display name is important, cannot remove it. I could actually avoid the package name in ProjectInformaiton.getDisplayName() and only use it in the project's root node, but other UI that's using just the ProjectInformation class will show different info from the projects view. IMHO more likely an issue with the rename infrastructure and UI. In case of "also rename folder" it makes sense to use ProjectInformation.getName() rather then getDisplayName(). Alternatively the maven support shall implement it's own version of the rename project UI.
*** Issue 163044 has been marked as a duplicate of this issue. ***
fixed by http://hg.netbeans.org/main/rev/6ac8cc588638