`

eclipse maven debug

阅读更多

1、Debugging with the Maven Jetty Plugin in Eclipse(step 1 )

  导航菜单->Run->External Tools->External Tools Configurations...

  Select "Program" and click the "New" button

  On the "Main" tab, fill in the "Location:" as the full path to your "mvn"        executable. For the "Working      Directory:" select the workspace that 
  matches your webapp. For "Arguments:" add jetty:run.

  Move to the "Environment" tab and click the "New" button to add a new    variable named MAVEN_OPTS with the value:
 -Xdebug -Xnoagent -Djava.compiler=NONE  -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y

 If you supply suspend=n instead of suspend=y you can start immediately    without running the debugger and launch the debugger at anytime you really
 wish to debug.


  pull up the "Run/Debug/Debug ..." menu item and select "Remote Java Application" and click the    "New" button. Fill in the dialog by selecting your webapp project for the "Project:" field, and ensure  you are using the same port number as you specified in the address= property above.

2、Debugging with the Maven Jetty Plugin in Eclipse (step 2 )

 导航菜单->Run-Debug Configurations...->Remote java Application

Now all you need to do is to Run/External Tools and select the name of the maven tool setup you created in step 1 to start the plugin and then Run/Debug and select the name of the debug setup you setup in step2.




分享到:
评论
1 楼 yanqingluo 2013-04-24  
谢谢,先转走.再验证.

相关推荐

    mybatis3.4.6源码,导入eclipse即可debug,运行之前需要添加maven环境

    mybatis3.4.6源码,导入eclipse即可debug,运行之前需要配置maven环境...debug程序在org.apache.ibatis.test这个package下。需要自己配置一下数据库哦!!不然会找不到

    Eclipse+Maven集成过程

    Eclipse+Maven集成过程

    Eclipse 4 Plug-in Development by Example: Beginner's Guide

    No prior knowledge of Eclipse plug-in development or OSGi is necessary, although you are expected to know how to create, run, and debug Java programs in Eclipse. Product Details Paperback: 348 ...

    Spring Tool Suite is an Eclipse-based development environment 2

    debug, run, and deploy your Spring applications, including integrations for Pivotal tc Server, Pivotal Cloud Foundry, Git, Maven, AspectJ, and comes on top of the latest Eclipse releases.

    org.eclipse.jgit.junit.http-0.9.9.99.2-UNOFFICIAL-ROBERTO-RELEASE.zip

    debug-maven-plugin.zip,插件帮助开发人员调试依赖项冲突即使插件调试版本冲突

    猎头java技术型。熟练掌握JAVA面向对象编程语言

    猎头简历,java技术型。熟练掌握JAVA面向对象编程语言,有良好的编码习惯 熟悉常用的JavaAPI,包括多线程、IO、Socket、JDBC、XML、反射等 ...熟练使用JSP、Servlet、javaBean进行web...熟练运用Eclipse,Maven等开发工具

    accept方法源码java-vscode-java-debug:用于VisualStudio代码的Java调试器

    接受方法源码java Java 调试器 概述 一个轻量级的 Java 调试器,基于它扩展了 ...项目(Maven/Gradle/Eclipse) 打开 Java 文件以激活扩展 添加调试配置并编辑launch.json 启动:指定mainClass 附加:指定hostName和po

    debug:调试LWJGL3 OpenGL应用程序

    ) 使用-javaagent:<cwd>/lwjglx-debug-1.0.0.jar启动LWJGL3应用程序使用命令行时,它应类似于: java -javaagent:<cwd>/lwjglx-debug-1.0.0.jar -cp all/the/jars your.main.Class 使用Eclipse时,用main()方法右键...

    Java代码检查工具PMD

     JDeveloper、Eclipse、JEdit、JBuilder、BlueJ、CodeGuide、NetBeans/Sun Java Studio Enterprise/Creator、IntelliJ IDEA、TextPad、Maven、Ant,、Gel、JCreator和Emacs。  此次版本的主要变化:  1、修复了已...

    soa-seed:这是SOA的种子项目,用于JavaWeb开发的spring和maven

    其他(eclipse debug 模式下实时编译,节省开发时间)环境说明与搭建项目JDK版本需要1.6, Tomcat 需要 6以上;代码check下来之后,设置好JDK 1.6, 使用maven install 即可开发规范(重要必读)配置文件配置文件按照...

    sdbg:用于GWT SuperDevMode的Eclipse调试器

    用于GWT SuperDevMode的Eclipse调试器 (并且通常适用于带有SourcemapJavaScript... 为了进行开发,建议您将源的根导入为Maven(Eclipse M4E)项目。 在com.github.sdbg.debug.ui项目中,您将看到一个名为SDBG.launch

    pmd 4.2.6及安装图解

    PMD是一款采用BSD协议发布的Java程序代码... JDeveloper、Eclipse、JEdit、JBuilder、BlueJ、CodeGuide、NetBeans/Sun Java Studio Enterprise/Creator、IntelliJ IDEA、TextPad、Maven、Ant,、Gel、JCreator和Emacs。

    Web-Comm:angularjs+spark java下的网页评论

    设置: The project should be imported in Eclipse as maven project (see import.jpg).For a work with VK.com MongoDB is not used.In order to launch server you have to say maven next commands:Open "Debug ...

    jfinal实例-官网

    5: maven 项目还可以在控制台通过 mvn jetty:run 来启动 6: 打开浏览器输入 localhost 即可查看运行效果 注意: 请确保您安装了 JavaSE 1.6 或更高版本,tomcat下运行项目需要先删除 jetty-server-xxx.jar,否则...

    Log4J2JasonSample:Log4j 2 Jason 配置示例应用程序

    通过 maven 运行: mvn clean install 从 Eclipse 运行:右键单击项目-> Run As -> Maven install 注意:您已经在 Eclipse 中安装了 maven 插件。 一旦 maven 安装成功 检查 /target/logs/test.log 中的日志文件 ...

    IntelliJ IDEA 简体中文专题教程

    22.Eclipse 的 Java Web 项目环境搭建 23.Maven 项目介绍 24.Debug 讲解 25.重构讲解 26.数据库管理工具 27.IntelliJ IDEA 常用设置 28.IntelliJ IDEA 常用快捷键讲解 29.IntelliJ IDEA 的 Java 热部署插件 JRebel ...

    aw-servlet-exercises:我的Web应用程序课程的练习

    在Eclipse中,右键单击it.xpug.lezione6.main.Main类,然后选择Debug As ...> Java Application。 然后在观察该应用程序 ESERCIZI LEZIONE 9 部署到heroku 有很多步骤和要学习的东西。 如果某事不起作用,请不要...

    背诵简历-专业技能.pdf

    5. 熟悉Junit、Debug进行项目测试 6. 熟悉 Idea 和 Eclipse 等开发工具 7. 熟悉 Git、Maven 等项目版本管理及构建工具 8. 熟悉Linux服务器常见的操作指令,了解Tomcat、Nginx服务器部署 9. 熟悉H5、CSS、JavaScript...

    Spring tool suite 001

    debug, run, and deploy your Spring applications, including integrations for Pivotal tc Server, Pivotal Cloud Foundry, Git, Maven, AspectJ, and comes on top of the latest Eclipse releases.

Global site tag (gtag.js) - Google Analytics