I'd like to have a button to run (custom) Maven targets in NetBeans 6.9. Hot-keys would also be nice. Is this possible?
If it is not possible: is there something like a console where I could Maven commands directly?
To achieve your requirement as mvn clean install -Pjnlp is simply just right click at the project and select Clean and Build . The Clean and Build calls mvn clean install together with the activate profile. I hope this may help. Alternatively, the project's popup menu has the Custom > Goals...
Creating a Maven Based NetBeans Platform Application Project. In this section you use the New Project wizard to create a NetBeans Platform Application from a Maven archetype. The wizard creates the Maven module projects that you need to develop an application on the NetBeans Platform.
In NetBeans 6.9: Right-click on the project -> Custom -> Goals. Make sure to check "Remember as: ". You can run this by Right-click on the project -> Custom -> "myRememberAsName"
I don't know if there is an easy way to assign this to a button or a short cut.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With