热部署插件Jrebel
IDEA开发工具想集成热部署插件,可是网上搜了很多资料,总是部署不起作用,一直就没在理会。后来开发工具总是重启浪费了很多时间。最终决定重新搞一下,现在可以使用了。
下载插件和破解包,已经准备好了,分享链接如下:
6.4.3版本地址:链接:https://pan.baidu.com/s/1URGlO-hmWGZ18S3tBvcfdA 密码:r5pn
本版本适用IDEA2012-2016版本;
总体步骤:解压后离线安装 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>
· 20
运行mvn jrebel:generate, 生成rebel.xml文件.
注意:
官方网站首页:http://www.shinians.com
有遇到问题的朋友可以联系我或者加QQ群: 369022804 备注csdn
https://jq.qq.com/?_wv=1027&k=5nInAoE