IDEA plugin JRebel installation configuration and crack activation detailed tutorial

Original blog post path: https://www.cnblogs.com/wang1024/p/7211194.html
Thanks to the original blogger for sharing


Introduction to JRebel  

IDEA does not support hot deployment natively. Generally, after updating the Java file, you need to manually restart the Tomcat server to take effect, which wastes a lot of life. At present, the best solution for idea hot deployment is to install the JRebel plug-in, so that whether updating the class class or updating the Spring configuration file can take effect immediately, greatly improving the development efficiency. However, the JRebel plug-in needs to be used for a fee, although the plug-in provides a 14-day trial (please click here to obtain the 14-day trial qualification: https://zeroturnaround.com/software/JRebel/trial/ ), and the trial information can be filled in casually Fill in the false information, but there is only one trial opportunity, that is to say, after the trial period expires, you cannot continue to use the plug-in through the trial method, so it is necessary to crack the JRebel plug-in. ps. I didn't use the latest version because I didn't find a perfect way to crack the latest version. I tried to crack the jrebel7.0 and later versions released by other people on the Internet, but it didn't work. If anyone succeeds, please let me know in the comments!

Preparations: JRebel6.4.3 crack file download link  Password: yef7 ( crack file does not support JRebel plug-in cracking of versions above 6.4.X )

  Official download link of JRebel6.4.3 installation file

  Attach the JRebel plugin official website download address (multi-version): https://plugins.jetbrains.com/idea/plugin/4441-JRebel-for-intellij 

  Note: If you have installed the JRebel plugin, you need to update the plugin to the latest version in settings before you can uninstall it (the latest version can be uninstalled directly). After installing the cracked version of JRebel, you cannot update the plugin, otherwise the crack will be invalid. .

JRebel installation and cracking:

  1. Installation: Click file->settings in the idea, then click plugins->install plugin from disk, select the offline installation file of the JRebel plugin, click OK and restart the idea.

 

  2. Crack: Close the idea, open the crack folder in the compressed package, and replace a license file and two jar packages​:

    1), replace the local C:\Users\your username\.JRebel\JRebel.lic with the JRebel.lic in the downloaded patch package; 

    2), C:\Users\your username\.IntelliJIdea2017.1\config\plugins\jr-ide-idea\lib\JRebel6\JRebel.jar 

    3), C:\Users\your username\.IntelliJIdea2017.1\config\plugins\jr-ide-idea\lib\JRebel\JRebel.jar 

  Then start the idea, and check whether the activation has been displayed in file->settings->plugins->JRebel. After activation, it will display valid, and the icon will be green (if it is not activated, try turning over to qiang to register the genuine version)

  3. After activation, set JRebel , select settings -> JRebel -> advanced, select Jrebel 6 Agent, and restart idea. Other configurations of Jrebel are fine by default.

 

  4. Configuration:

    1). The project must be released in the form   of " war exploded ", not in the form of "war" package

 

 

       2).在Run->Edit Configuration选项中必须配置的项如下图:(必须先以“war exploded”形式发布项目后才能看到此选项)

    3)、启动时选择以JRebel插件在tomcat中启动,调试或运行均可(待所有配置都完成后再尝试运行)

  注意:下面的这一步可以不做

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

复制代码
<build>  <-- 只需要复制两个 plugin 标签及里面的内容即可,build 和 plugins 标签是为了更容易理解两个 plugin 标签的放置位置 -->
    <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.1</version>
                    <configuration>
                        <source>1.8</source>
                        <target>1.8</target>
                        <encoding>UTF-8</encoding>
                    </configuration>
                </plugin>
                <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>
    </plugins>
</build>
复制代码

 

    将两个 plugin 标签的内容复制到pom.xml文件后,右键点击pom.xml文件,选择maven->ReImport(首先要确保该项目是maven项目),maven会自动下载所需的文件(或者使用maven命令:mvn JRebel:generate)。

     如果已经可以正常使用了,不妨点击一下右下角的 推荐 按钮,或者分享给其他人,让更多人看到!!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324774598&siteId=291194637