Problem
You would like to deploy a Java Maven project you are developing using the Netbeans IDE to your Maven repository.
Solution
Right click on your project in the Netbeans ‘Projects’ view and select the Custom / Goals … in the drop down menu as shown below.
Type ‘deploy’ in the field ‘Goals’ in the following dialog. Then, click Ok and your project should be deployed!
Thanks!
What if I want to deploy it to a custom folder?
The procedure described here will always deploy it to the location specified in the Maven configuration.
You can configure it to be deployed to a file repository. Here are some instructions for that http://www.java-tutorial.ch/maven/deploying-in-file-system-using-maven