Friday, February 1, 2013

Integrating Jetty into NetBeans 7.2.1 with Maven, oh boy!

Overview

You'll need to change the default maven actions in the Project Properties dialog:

1. Right click on your project
2. Select Properties
3. Select Actions, it's on the left.
4. Select an action on the right to edit.

Run Project

Execute Goals
jetty:run

Set Properties
jetty.scanIntervalSeconds=5

Debug Project

Execute Goals
jetty:run

Set Properties

netbeans.deploy.debugmode=true
jetty.scanIntervalSeconds=5
jpda.listen=maven


Notes

So far I've only setup the above actions, but the process is similar for others.

Check out the "Add >" button, it's more interesting than it probably should be.

References


No comments: