[ https://issues.apache.org/jira/browse/NETBEANS-4083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070707#comment-17070707 ]
Ernie Rael commented on NETBEANS-4083: -------------------------------------- The PR didn't hook up correctly, sigh. [https://github.com/apache/netbeans/pull/2053] {code:java} changeset: 4122:a21deae90ed9 bookmark: ValidationsForMavenProjectCreation tag: tip parent: 4102:a92abb562f42 user: Ernie Rael <err...@raelity.com> date: Mon Mar 30 06:47:05 2020 +0100 summary: [NETBEANS-4083] Add missing validation in new maven project dialog {code} > Exception creating NewProject JavaWithMaven > ------------------------------------------- > > Key: NETBEANS-4083 > URL: https://issues.apache.org/jira/browse/NETBEANS-4083 > Project: NetBeans > Issue Type: Bug > Components: projects - Maven > Affects Versions: 12.0 > Reporter: Ernie Rael > Assignee: Ernie Rael > Priority: Major > Labels: pull-request-available > Fix For: 12.0 > > > Dialog has incomplete validation for "Project Folder:". Also incomplete > validation for "Package:". These problems affect several new project types > To reproduce "Project Folder:" problem > # touch /tmp/xxx # create some random file > # NewProject > JavaWithMaven > JavaApplication > # Enter "Project Location:" as "/tmp" > # Enter "Project Name:" as "xx > # click Finish > Observe exception (last few lines) > {code:java} > java.lang.IllegalArgumentException: Attempted to pass a non-directory to > findProject: F:\tmp\xx@6b3ef9bc:3669eed1 > at > org.netbeans.api.project.ProjectManager.findProject(ProjectManager.java:140) > [catch] at > org.netbeans.modules.maven.newproject.ArchetypeWizardUtils.processProjectFolder(ArchetypeWizardUtils.java:208) > {code} > To reproduce "Package:" problem (several ways) > # NewProject > JavaWithMaven > JavaApplication > # Enter "Project Name:" as "xx-yy-8", notice that "Package:" has a trailing > dot > # click Finish > Project is created with invalid package name. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists