在Eclipse下用m2eclipse调试Maven Web项目

想在Eclipse调试Maven Web项目,发现有比 Debugging with the Maven Jetty Plugin in Eclipse( 在Eclipse中调试Maven项目)更简单的方法,就是用m2eclipse。步骤如下:

1)安装 m2eclipse 插件,插件更新地址: http://m2eclipse.sonatype.org/update/

2)点“Debug Configurations...”菜单,新建一个“Maven Build”,输入“Base directory”,在“Goals”中输入 jetty:run -Djetty.port=8080

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