开发者

How to profile a Jetty application in a Netbeans Maven Web Project?

开发者 https://www.devze.com 2023-03-27 06:55 出处:网络
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:

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:

  1. 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>
    
  2. Project Properties -> Run -> Server -> <No Server Selected>

  3. Project Properties -> Actions -> Run Project -> Goals = jetty:run
  4. Project Propertie开发者_StackOverflow中文版s -> Actions -> Debug Project -> Goals = jetty:run, add jpda.listen=maven to Set Properties

Any ideas on how to get the "Profile Project" action to work?


It seems this isn't supported yet: https://netbeans.org/bugzilla/show_bug.cgi?id=200771

0

精彩评论

暂无评论...
验证码 换一张
取 消