http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html
英文不好,看了个大概
1. 运行(Run) —〉调试(Debug)
2. 在java应用程序上新建一个
3. 在Main Class 中填 "org.codehaus.classworlds.Launcher"
4. 在自变量(argument) tab中
# Set Program arguments to "jetty6:run"
# Set VM arguments to "-Xmx512M -Dclassworlds.conf=[MAVEN_HOME]/bin/m2.conf -Dmaven.home=[MAVEN_HOME]"
把其中的[MAVEN_HOME]改成你安装maven的目录
5. 在类路径(classpath) tab中
用户条目(user entries)中删除原有的的工程,然后添加"[MAVEN_HOME]/boot/classworlds-1.1.jar"
6. 在源(source) tab中添加你现在的工程
之后就可以在eclipse中直接运行jetty6:run了,省了每次敲命令,意外收获。。。。