wtellis opened a new issue, #6320: URL: https://github.com/apache/netbeans/issues/6320
### Apache NetBeans version Apache NetBeans 18 ### What happened I have my webpp configured to use a relative URL with multiple parameters:  However, when I try to run it I get the following error: `No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1]` When I remove the second parameter:  it runs fine. ### How to reproduce Create a webapp using the Maven Web Application archetype. Right click to open the project properties and select the Run node. Enter a relative URL that has two or more parameters:  Save your changes and right click on the project and select Run or Debug:  The project will fail to run and you should see the following output in your console: `No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1]` ### Did this work correctly in an earlier version? No / Don't know ### Operating System Window 10 ### JDK Adoptium 17.0.7+7 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else It looks like it maybe an issue with escaping the ampersand when NB builds the command line to run the webapp (note the unescaped ampersand in "value1¶m2") : `cd E:\nb-error-demo\nb; JAVA_HOME=E:\\jdk\\jdk-17.0.7+7 cmd /c "\"C:\\Program Files\\NetBeans-18\\netbeans\\java\\maven\\bin\\mvn.cmd\" -Dnetbeans.deploy=true -Dnetbeans.deploy.clientUrlPart=test?param1=value1¶m2=value2 -DskipTests=true -Dexec.vmArgs= -Dexec.appArgs= \"-Dmaven.ext.class.path=C:\\Program Files\\NetBeans-18\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 package"` ### Are you willing to submit a pull request? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
