How to profile a Jetty application in a Netbeans Maven web project?

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?

+6
source share
1 answer

This doesn't seem to be supported yet: https://netbeans.org/bugzilla/show_bug.cgi?id=200771

+1
source

Source: https://habr.com/ru/post/894634/


All Articles