Search

Dark theme | Light theme

November 12, 2008

mvn netbeans:netbeans

Using Maven projects in Eclipse or IDEA requires some user action. We have to invoke the following command for Eclipse: mvn eclipse:eclipse and set the value of a Eclipse global variable to make it work. For IDEA we must invoke: mvn idea:idea to create the project files for IDEA, so we can use the Maven project. But there is no mvn netbeans:netbeans command!

No that is right, because NetBeans supports Maven projects natively (after installing the Maven plugin from Tools | Plugins). NetBeans doesn't need to have special project files. NetBeans reads the pom.xml and that is our NetBeans project. How cool is that, nothing more needed! Just go to File | Open Project and select the directory with the pom.xml file and we are ready to go.