I am trying to use Jetty in a Netbeans Maven web project (instead of Glassfish or Tomcat). I managed to start and debug the 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 → Debugging project → Goals =
jetty:run , add jpda.listen=maven to set properties
Any ideas on how to get the "Profile Project" action to work?
source share