Sometimes you want to harness the power of the NetBeans platform without being worried about a user interface.
Lets’ see how to do it with Maven Select the Create Module Project item In the application module (the orange module icon)
Change the dependencies to

Change the dependencies section of your NbCli-Sample to the following

Although it seems like we’re adding more dependencies we’re actually putting the platform on a diet and getting rid of all the User Interface related stuff that we don’t need.

In order to give your command line application a static main you need to use an Installer / Activator The restored() becomes your public static void main

However there is still one problem... Splashscreens aren't very CLI, so lets remove it.

Go to your application module and add the following snippet to the POM
[null, {"document_url": "http://tim-sparg.blogspot.com/2011/12/nb-cli-application-with-maven.html", "unformatted_src": "http://3.bp.blogspot.com/-orMuMU_Vjt0/TuhdQHs66rI/AAAAAAAAAEI/AHRp4qNKEwk/s400/nbcli1.png", "src": "http://3.bp.blogspot.com/-orMuMU_Vjt0/TuhdQHs66rI/AAAAAAAAAEI/AHRp4qNKEwk/s400/nbcli1.png", "formatted_filename": "nbcli", "rendered_width": 400, "rendered_height": 275}, null, {"document_url": "http://tim-sparg.blogspot.com/2011/12/nb-cli-application-with-maven.html", "unformatted_src": "http://3.bp.blogspot.com/-vXn_55V7w0M/TuhdRQOfyKI/AAAAAAAAAEQ/VxlTi2bdcFo/s400/nbcli2.png", "src": "http://3.bp.blogspot.com/-vXn_55V7w0M/TuhdRQOfyKI/AAAAAAAAAEQ/VxlTi2bdcFo/s400/nbcli2.png", "formatted_filename": "nbcli", "rendered_width": 400, "rendered_height": 270}, null, {"document_url": "http://tim-sparg.blogspot.com/2011/12/nb-cli-application-with-maven.html", "unformatted_src": "http://3.bp.blogspot.com/-xtYxywuYUVk/TuhdSno5yUI/AAAAAAAAAEY/3Wxkb_uJ1Lc/s400/nbcli3.png", "src": "http://3.bp.blogspot.com/-xtYxywuYUVk/TuhdSno5yUI/AAAAAAAAAEY/3Wxkb_uJ1Lc/s400/nbcli3.png", "formatted_filename": "nbcli", "rendered_width": 400, "rendered_height": 292}, null, {"document_url": "http://tim-sparg.blogspot.com/2011/12/nb-cli-application-with-maven.html", "unformatted_src": "http://1.bp.blogspot.com/-3vyb0CE7tws/TuhdWdk2VFI/AAAAAAAAAEg/9nwPLcT2rr4/s400/nbcli4.png", "src": "http://1.bp.blogspot.com/-3vyb0CE7tws/TuhdWdk2VFI/AAAAAAAAAEg/9nwPLcT2rr4/s400/nbcli4.png", "formatted_filename": "nbcli", "rendered_width": 400, "rendered_height": 252}, null, null, null]