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.
Create new Maven Web Application and change its name to Maven Project. It's created as <Badly formed Maven project>. It's unacceptable,we should either add context control to stop user from creating project with space in name or help somehow to fix the name problem automatically,to create valid project even in this case.
the rename project dialog and complete renaming logic is not accessible from maven support codebase, aq fix would require a big rewrite of the project operations infrastructure and UI. -> next
a possible solution for 6.7 would include removing all or some of the the project manipulating actions. like rename, move, delete, copy.
NOTICE: If you create Maven Web Application with "Maven Project" project name, build completely fails. Leaving target milestone on next,but raising priority to P2.
I see. I've confused the issue with rename project dialog, but it's about the project creation wizard dafe, can you just kick out the space from the wizards, like you did with multibyte characters? Thanks.
sure
I don'think this is restricted to new project wizard - there's different problems also when renaming project or changing its name through properties and the problem is quite serious.I suggest to add context control to all this three cases,at least for spaces, which are doing most damage.
*** Issue 152418 has been marked as a duplicate of this issue. ***
The <name> can contain spaces. I guess the problem is the <artifactId>? IMHO this should never be changed simply as a result of using Rename Project; you should have to change it explicitly in project properties, where the maven module can exercise full control.
Yes jesse, problem is in artifactId and groupId, these coordinates can't contain spaces, some characters breaking xml syntax and also multibyte chars like chinese. I'm going to check all these in project creation wizards and maven project properties and I'll try to change Project/Rename... to not change artifactId.
Well, I found that Project/Rename... doesn't touch artifactId and changes just name, which is OK. fixed: c0fcccad02d1
BTW I tried to rename a (POM) project today. Worked poorly: 1. The suffix " (pom)" was included in the dialog. Not knowing what to do, I left it in when typing in the new name, which resulted in <name>New Name (pom)</name> in pom.xml and "New Name (pom) (pom)" in the Projects tab. Had to Rename again, deleting " (pom) (pom)" from the resulting dialog. Anyway I have to say I have always strongly disliked the inclusion of the packaging string in the project's display name. You should rather pick an icon according to well-known packaging types (Java Cup for 'jar', world for 'war', etc.), with a default Maven icon for unknown packaging types or 'pom' packaging, and leave the packaging type (along with disk location etc.) in the tooltip. 2. An Output Window tab "Deleting Project" appeared. Rather alarming. No output shown in it and bold title never disappeared. Correct change made on disk but Projects tab showed two copies of the project, with old and new titles. May have been side effects of an uncaught exception which I hear was recently fixed.
Integrated into 'main-golden', will be available in build *200905220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c0fcccad02d1 User: Dafe Simonek <dsimonek@netbeans.org> Log: #159066: Refuse artifactId or groupId which contain not allowed characters
v.