Following the first post about « using Netbeans for an IDEA user », I would like to add some more informations about maven support.
Skipping unit tests:
Each time I compile my maven project in Netbeans, it runs the unit tests, even for small changes. Fortunately, you can easily tell Netbeans to avoid unit test during compilation. Simply right-click on the project, then select Properties. You can check the « Skip tests » control like in the dialog above:
Importing a maven Web project:
I have successfully opened a Maven project that generates a .war file into Netbeans. It is recognized as a web project, you simply by sets the target application server, and then you can run and debug your web application.
It generates the .war file using Maven, and deploys it automatically to the application server.
The neat feature with Web projects:
It’s easy to use, and great for day-to-day web development: It’s tedious to wait for Maven to generate the war and deploys it each time you modify a .jsp or a .xhtml page. So Netbeans automatically deploy the webapp resources files when you save them. Great ! And IDEA does it too.

Commentaires
Ecrire un commentaire Trackback