How to set agentlib property for mvn tomcat plugin (jpda)

前端 未结 3 1105
萌比男神i
萌比男神i 2020-12-30 06:37

Related to eclipse debug remote web application => How do I debug a remote application in my eclipse

How can I set / archive this in the mvn tomcat plugin? http://to

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 06:57

    $ export MAVEN_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
    $ mvn tomcat7:run-war
    

    ^^ that's it, not cool (as it is not in POM) but it works

    Source: http://aaronz-sakai.blogspot.de/2009/02/debugging-jetty-when-running-mvn.html

提交回复
热议问题