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.
NetBeans build 201302070001 JDK 7u11 64-bit When creating a Maven-based NetBeans Application, the user is allowed to enter a project name such as APP_1. But the _1 part causes the branding token to be malformed, so the app doesn't run without first editing the branding token in the parent POM. java.lang.IllegalArgumentException: Malformed branding token: app_1 at org.openide.util.NbBundle.setBranding(NbBundle.java:138) ... So please either don't allow the user to enter a name that would cause the branding token to be invalid, or change the entered value until the branding token is valid.
vaguely related to https://jira.codehaus.org/browse/MNBMODULE-92 conversion from artifactid to branding token is performed in velocity. The panel for choosing artifact is in generic maven support space, not the apisupport modules..
I guess one way would be to strip the token of any alphanumerical characters.
(In reply to comment #2) > I guess one way would be to strip the token of any alphanumerical characters. any NON-aplhanumerical
(In reply to comment #3) > (In reply to comment #2) > > I guess one way would be to strip the token of any alphanumerical characters. > > any NON-aplhanumerical Agreed. :)
Created attachment 133084 [details] suggested patch to mojo.codehaus.org
http://hg.netbeans.org/core-main/rev/52fa13b00a4a
Integrated into 'main-silver', will be available in build *201307011244* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/52fa13b00a4a User: Milos Kleint <mkleint@netbeans.org> Log: #226065 use 1.15 of application archetype that skips all non alphanumerical chars from branding token
Verified with build 201307032300. Thanks!