整合maven,jetty,jrebel进行调试

maven配置

这个网上有很多,验证mvn是否配置正确:

Jrebel配置

jetty配置

  • maven插件,pom.xml中插入

    <plugin>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>9.1.3.v20140225</version>
    <configuration>
    <useTestScope>true</useTestScope>
    <scanIntervalSeconds>0</scanIntervalSeconds>
    <useTestClasspath>true</useTestClasspath>
    <webApp>
    <!-- 从jetty的jar中拷贝出webdefault.xml 修改其中的参数 ,可以修改html,js -->
    <defaultsDescriptor>src/test/resources/jetty.xml</defaultsDescriptor>
    <contextPath>/${project.artifactId}</contextPath>
    <descriptor>${project.build.directory}/test-classes/web.xml</descriptor>
    </webApp>
    <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
    <stopKey>foo</stopKey>
    <stopPort>9999</stopPort>
    </configuration>
    </plugin>
  • run configurations

     

    -noverify
    -javaagent:D:/software/jrebel/jrebel.jar
    -Xbootclasspath/p:jrebel-bootstrap.jar;jrebel.jar
    -Drebel.generate.show=true
    -Drebel.spring_plugin=true
    -Drebel.aspectj_plugin=true
    -Drebel.cxf_plugin=true
    -Drebel.logback_plugin=true
    -Drebel.mybatis_plugin=true
    -Xdebug -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

开始调试

  1. 点击上图中的run按钮

    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: #############################################################
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: JRebel 5.4.2 (201311271505)
    2014-03-17 20:28:55 JRebel: (c) Copyright ZeroTurnaround OU, Estonia, Tartu.
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: Over the last 30 days JRebel prevented
    2014-03-17 20:28:55 JRebel: at least 2 redeploys/restarts saving you about 0.1 hours.
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: Over the last 257 days JRebel prevented
    2014-03-17 20:28:55 JRebel: at least 97 redeploys/restarts saving you about 3.9 hours.
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: This product is licensed to www.sdandroid.com
    2014-03-17 20:28:55 JRebel: for unlimited number of developer seats on site.
    2014-03-17 20:28:55 JRebel: ####### Cracked by sdandroid (blog@sdandroid.com) ######
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: The following plugins are disabled at the moment:
    2014-03-17 20:28:55 JRebel: * Axis2 plugin (set -Drebel.axis2_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Camel plugin (set -Drebel.camel_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Click plugin (set -Drebel.click_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Deltaspike plugin (set -Drebel.deltaspike_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Eclipse RCP Plugin (set -Drebel.eclipse_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * JBoss7 EJB Plugin (set -Drebel.jboss7_ejb_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Jersey plugin (set -Drebel.jersey_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Log4j2 plugin (set -Drebel.log4j2_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Mustache Plugin (set -Drebel.mustache_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * RESTlet plugin (set -Drebel.restlet_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Spring Data Plugin (set -Drebel.spring_data_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Thymeleaf Plugin (set -Drebel.thymeleaf_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * VRaptor plugin (set -Drebel.vraptor_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * Vaadin CDI utils plugin (set -Drebel.vaadin_cdiutils_plugin=true to enable)
    2014-03-17 20:28:55 JRebel: * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: #############################################################
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel:
    2014-03-17 20:28:55 JRebel: A newer version '5.5.1' is available for download
    2014-03-17 20:28:55 JRebel: from http://zeroturnaround.com/software/jrebel/download/
    2014-03-17 20:28:55 JRebel:
    Listening for transport dt_socket at address: 8787
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

当控制台开始打出如上的日志,说明你的项目正以jrebel的方式启动,并开启的debug端口为8787(如倒数第二行)

此时的项目如同没开debug一样,不会进入断点

2.添加远程调试

单击debug按钮后,就可以自动进入断点了

整合maven,jetty,jrebel进行debug调试的更多相关文章

  1. IDEA Maven Jetty Jrebel 热部署

    准备:1.下载Jrebel的离线安装包,版本是6.4.3版本.            2.下载Jrebel的破解补丁包,同样也是针对6.4.3版本的 Jrebel离线安装包官网下载地址:https:/ ...

  2. Mac 下 Intellij IDEA 2016.1.2+maven+jetty+ JRebel 6.4.3 破解+spring mvc

    准备阶段:  Intellij IDEA 2016.1.2 (官方下载,作者下载的是社区版): JRebel for IntelliJ插件安装,可选择在线安装,在线安装的是最新版,我选择本地安装, 下 ...

  3. maven项目debug调试不能够进入源码问题解决

    Maven项目在debug调试模式的时候,进入调试模式,但是没有进入源码界面. 上述问题的解决方法如下: 第一步: 第二步: 第三步: 第四步: 第五步: 到这里就解决了:

  4. maven的tomcat插件如何进行debug调试

    利用maven来部署工程时,一般采用的是tomcat插件,使项目在tomcat上面运行,那么这个debug调试是如何进行呢? 我们在调试的时候问题: 会提示找不到资源,那么如何进行修改呢,方法两个: ...

  5. (转)淘淘商城系列——maven工程debug调试

    http://blog.csdn.net/yerenyuan_pku/article/details/72784074 上文我们已经实现了商品列表展示的功能,在实际开发中我们肯定是要经常对maven工 ...

  6. 使用Eclipse+Maven+Jetty构建Java Web开发环境(几个教程综合集成2014发行)

    工作需要使用Jetty由于web集装箱,得知Eclipse+Maven+Jetty该组合是非常好的,因此,要在网上找了很多教程,但不写或多或少特定的或过时的内容而导致最终的配置失败,易于配置为未来的同 ...

  7. Intellij IDEA +MAVEN+Jetty实现SpringMVC简单查询功能

    利用 Intellij IDEA +MAVEN+Jetty实现SpringMVC读取数据库数据并显示在页面上的简单功能 1 新建maven项目,配置pom.xml <project xmlns= ...

  8. 【技术贴】第二篇 :解决使用maven jetty启动后无法加载修改过后的静态资源

    之前写过第一篇:[技术贴]解决使用maven jetty启动后无法加载修改过后的静态资源 一直用着挺舒服的,直到今天,出现了又不能修改静态js,jsp等资源的现象.很是苦闷. 经过调错处理之后,发现是 ...

  9. maven jetty plugin

    转载:http://blog.163.com/xueling1231989@126/blog/static/1026408072013101311395492/ 前言: 在 maven 下测试调试时, ...

随机推荐

  1. Distributed R

    R语言的分布式目前有这几个产品: (A)RHadoop:对hadoop族系的产品,其中提供了以下的组件 A.1 rhdfs  浏览读取增加修改hdfs上面的文件数据: A.2 rhbase 浏览读取增 ...

  2. Win10 IIS以及ASP.NET 4.0配置问题日志

    问题日志 升级到Win10并安装了VS2015后,原有ASP.NET 4.0项目在本机的IIS部署出现问题. 安装IIS: 在[控制面板.程序.启用或关闭Windows功能.Internet Info ...

  3. skip-grant-tables:非常有用的mysql启动参数

    skip-grant-tables:非常有用的mysql启动参数   介绍一个非常有用的mysql启动参数—— --skip-grant-tables.顾名思义,就是在启动mysql时不启动grant ...

  4. java连接oracle数据库的实现代码

    package connectionOracleDatabase; import java.sql.Connection; import java.sql.DatabaseMetaData; impo ...

  5. [转载]MongoDB开发学习(2)索引的基本操作

    索引能够极大的提高查询的效率.在数据库中简历索引必不可少. 在MongoDB中可以很轻松的创建索引. 默认索引_id_ 开启MongoDB服务器,创建数据库cnblogs,创建集合Users .(关于 ...

  6. Python/Numpy大数据编程经验

    Python/Numpy大数据编程经验 1.边处理边保存数据,不要处理完了一次性保存.不然程序跑了几小时甚至几天后挂了,就啥也没有了.即使部分结果不能实用,也可以分析程序流程的问题或者数据的特点.   ...

  7. Unity C#写的A*寻路

    原地址:http://www.unity蛮牛.com/blog-13769-1078.html 首先看了这篇翻译外国人的文章http://www.raywenderlich.com/zh-hans/2 ...

  8. WINDOWS HYPER-V加新网卡,设置网络出错

    新网卡加入,设置好IP之后,HYPER-V需要更改相应外部网络连接,然后重新生成新的虚拟连接网卡. 不然,虚拟机无法正常使用网络. 但我昨天在绑定新的网站时,出现如下错误: Adding a new ...

  9. 服务器部署_linuix下 一台nginx 多域名之二

    第二个需求: 1. 一台服务器部署了三个应用web1~web3对应三个域名:www.web1.com.www.web2.com.www.web3.com ,方法参照我另外一篇文章 2. 如果用非www ...

  10. KMP的next[]数组

    KMP是众多字符串问题的基础 理解next数组尤为重要 next又称前缀数组 是 它所处位置的前一个位置的元素 与 该链 链首开始 几个元素相匹配(即相同) 举个实例来说明: next对应的是该位置的 ...