您的位置:首页 > 其它

Idea2016配置并破解jrebel

2017-02-25 17:10 288 查看
准备工作: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>


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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: