想在Eclipse调试Maven Web项目,发现有比[url=http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse]Debugging with the Maven Jetty Plugin in Eclipse[/url]([url=http://jdkcn.com/entry/debugging-with-maven-jetty-plugin-in-eclipse.html]在Eclipse中调试Maven项目[/url])更简单的方法,就是用m2eclipse。步骤如下:
1)安装 m2eclipse 插件,插件更新地址:[url]http://m2eclipse.sonatype.org/update/[/url]
2)点“Debug Configurations...”菜单,新建一个“Maven Build”,输入“Base directory”,在“Goals”中输入[b]jetty:run -Djetty.port=8080[/b]
1)安装 m2eclipse 插件,插件更新地址:[url]http://m2eclipse.sonatype.org/update/[/url]
2)点“Debug Configurations...”菜单,新建一个“Maven Build”,输入“Base directory”,在“Goals”中输入[b]jetty:run -Djetty.port=8080[/b]