Idea2016配置并破解jrebel

来源:互联网 发布:修复白苹果而不丢数据 编辑:程序博客网 时间:2024/05/21 10:20

准备工作:1、下载Jrebel的离线包安装包,我选择的版本是6.4.3版本。 
2、下载Jrebel的破解补丁包,同样也是针对6.4.3版本的

Jrebel官网下载地址:https://plugins.jetbrains.com/idea/plugin/4441-jrebel-for-intellij 
下载后是 jr-ide-intellij-6.4.3_13-16.zip 的一个文件

这里写图片描述

补丁包地址:http://pan.baidu.com/s/1i4D9ZTz 获取密码 vecj 
下载后是 jrebel6.4.3-cracked.zip 的压缩包,并解压

然后离线安装 Jrebel插件 ,如下图

这里写图片描述

安装完插件关闭 idea

下面开始破解

打开解压补丁,替换两个jar包与一个licence文件 ​

1、将本机 C:\Users\你的用户名\.jrebel\jrebel.lic替换为下载的补丁包里的 jrebel.lic;

2、C:\Users\你的用户名.IntelliJIdea2016.1\config\plugins\jr-ide-idea\lib\jrebel6\jrebel.jar

3、C:\Users\你的用户名.IntelliJIdea2016.1\config\plugins\jr-ide-idea\lib\jrebel\jrebel.jar 
这里写图片描述

将补丁解压包里的文件分别覆盖一下文件,注意文件夹的名字哦。覆盖完 
然后启动idea 查看是否已激活 
这里写图片描述

激活后,设置jrebel,选择settings -> jrebel -> advanced 选择Jrebel 6 Agent,然后重启idea。

Jrebel的配置按默认就好,最后通过Jrebel去启动tomcat

这里写图片描述

这里写图片描述

当一个项目使用maven多模块开发时通过上面的配置, 只能自动加载webapp所在的模块, 若想改动其他模块的代码也要自动加载, 需在项目的根(父)pom.xml中加入下面的配置: 
这里写图片描述

<plugin>    <groupId>org.zeroturnaround</groupId>    <artifactId>jrebel-maven-plugin</artifactId>    <version>1.1.5</version>    <configuration>        <addResourcesDirToRebelXml>true</addResourcesDirToRebelXml>        <alwaysGenerate>true</alwaysGenerate>        <showGenerated>true</showGenerated>    </configuration>    <executions>        <execution>            <id>generate-rebel-xml</id>            <phase>process-resources</phase>            <goals>                <goal>generate</goal>            </goals>        </execution>    </executions></plugin>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

运行mvn jrebel:generate, 生成rebel.xml文件.

这里写图片描述

原创粉丝点击