Debug Maven with NetBeans

转载自:http://macyou.yo2.cn/articles/debug-maven-with-netbeans.html

 

新版本的Maven(2.0.8+)debug的时候不用再手动的去设置MAVEN_OPTS,直接使用mvnDebug代替mvn执行。

 

例如 mvnDebug jetty:run

 

然后就可以在Netbeans里面使用Run(Debug )->Attach debuger,进行调试。(Eclipse与此类似,使用Remote debug就可以了)

 

(红色是改正的部分,在NetBeans 6.5 下通过)

 

 

你可能感兴趣的:(eclipse,html,maven,Netbeans)