Implementing thermal deployment in Intellij idea

Source: Internet
Author: User

Jrebel Installation
    1. Download IntelliJ Idea's Jrebel plugin: Jr-ide-idea-6.2.0-idea-13-14.zip.
    2. Open Intellij, enter Intellij idea-preferences-plugins-install plugin from disk select Download jr-ide-idea-6.2.0-idea-1 3-14.zip for installation.
    3. Complete the Jrebel registration and get a 14-day trial period.
Crack
    1. Download cracked files: Jrebel.jar and Jrebel.lic
    2. Close Intellijidea ( please take a look at this step if you don't succeed )
    3. Copy the Jrebel.jar to the C:\Users\Administrator\. The Intellijidea14\config\plugins\jr-ide-idea\lib\jrebel directory covers the original Jrebel.jar.

Delete all content from C:\Users\Administrator\.jrebel\
Put the jrebel.lic in the C:\Users\Administrator\.jrebel\ directory.
Open IntelliJ idea->settings->other settings->jrebel->offine Mode, click configure-> Select "License file from The hard drive (jrebel.lic), click the Browse button, select C:\Users\Administrator\.jrebel\jrebel.lic

After restarting IntelliJ idea, you can see in Jrebel that Jrebel has been activated.

Two. Test your Web project for thermal deployment

1. Build a good Web project, skip over here.

2. Copy the WebApp under the Src\main directory to the project directory (and the SRC sibling), renamed Webroot.

2. Set the File-project Structure

(1) Setting the project compiler output path



(2) Set the code compilation output directory for modules. Click Modules to set the right use module compile output path

are set to Project\webroot\web-inf\classes


Click Apply,
Note: Exclude Output Paths This tick, the classes directory under the Web-inf directory will be hidden in idea. Also in the Next Sources tab, you can use the Exclude Folders set the directory to be hidden in idea, such as the Webroot directory



(3) Specify the path to Web. XML and Webroot. Click on the website to specify

Web Module Deployment Descriptor path is Project\webroot\web-inf\web.xml

and Web Resource directory path is project\webroot


Click Apply.

(4) Set artifacts check exploded set the path of the output directory



Attention:


Three. Configure Tomcat

1. Click on the icon button to enter the server configuration page


2. Tap Defaults-tomcat server-local to enter the settings interface for the Local tomcat template.



3. Click Configure, set the Tomcat path, and click OK to save


4. Add the application server that corresponds to project


VM options:

Input content:

-xms2048m
-xmx2048m
-xx:maxpermsize=4096m
-noverify
-javaagent:c:\users\m\. Intellijidea14\config\plugins\jr-ide-idea\lib\jrebel\jrebel.jar
-drebel.spring_plugin=true

Add:

 -javaagent Parameters
This parameter is introduced by JDK5 and can be viewed through java-h to see its Help information
by using the-javaagent parameter, the user can execute the specific code in the specified Javaagent package before executing the main function, and can even modify the code in the replacement class dynamically.

The Javaagent code runs in the same JVM as your main method and is loaded by the same system ClassLoader, managed by the same security policy and context.

-noverify parameters
Turn off the checksum of the Java bytecode by using the-noverify parameter.
When ClassLoader loads Java bytecode, the bytecode first accepts the checksum of the Validator (verifier). The validator is responsible for checking for obvious destructive actions that cannot be performed by those instructions. Check actions performed by the validator:
1, the variable to be initialized before use.
2. Match between the method call and the object application type.
3. The rules for accessing private data and methods have not been violated.
4. Access to local variables is within the runtime stack.
5. There is no overflow at runtime stack.



After saving and clicking on the Deployment tab,



Select the exploded




The URI that is set to the right is the application path.




Save, go back to Server tab, set on Update action and on frame deactivation two actions both update classes and resources





Last note in order to prevent clicking the reimport button causes Moudels and artifact two tabs inside the path to restore the default problem


, click the Second button on the right of the graph to enter MAVEN settings:

Click Maven---Importing---to remove the hooks in the hook:


This reimport will not cause the path recovery to default.


Cracked package Download and reprint: http://blog.csdn.net/ablipan/article/details/46228227



Implementing thermal deployment in Intellij idea

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.