netbeans版本:6.8
1. 打开tools菜单:
2. 选择miscellaneous
3. 选择 Edit global customs goal definitions
4. 选择 Add
5. 填写action名称
6. 填写 Excute Goals :jetty run
7. 填写 set properties :jpda.listen=maven
MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
8. 当前项目右击选择:custom 即可看到所添加的action
word附件