I'm trying to use Jetty in a Netbeans Maven Web Project (instead of Glassfish or Tomcat). I've managed to get running and debugging to work as follows:
Add the plugin to pom.xml:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.4.4.v20110707</version> <configuration> <scanIntervalSeconds>5</scanIntervalSeconds> </configuration> </plugin>
Project Properties -> Run -> Server ->
<No Server Selected>
- Project Properties -> Actions -> Run Project -> Goals =
jetty:run
- Project Properties -> Actions -> Debug Project -> Goals =
jetty:run
, addjpda.listen=maven
to Set Properties
Any ideas on how to get the "Profile Project" action to work?