liuwangxia 发表于 2013-2-7 15:08:44

在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
页: [1]
查看完整版本: 在Eclipse下用m2eclipse调试Maven Web项目