IDEA+jetty+jrebel+maven realizes hot deployment


http://www.myexception.cn/program/1766490.html

http://blog.csdn.net/limenghua9112/article/details/51942983


[Sharp tool series] IDEA+jetty+jrebel+maven realizes hot deployment The
first step : configure jetty maven plugin
<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>8.1.16.v20140903</version>
    <configuration>
        <scanIntervalSeconds> 0</scanIntervalSeconds>
        <webApp><contextPath>/</contextPath></webApp>
        <connectors>
            <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
                <port>80</port>
                <maxIdleTime>300000</maxIdleTime>
            </connector>
        </connectors>
    </configuration>
</plugin>

Step 2: Set the startup command.
1. As shown in Figure

2 and Figure

3, click the debug button, and the console will display [INFO] Started Jetty Server
ok, so jetty can be used normally.

Step 3: Install the jrebel IDEA plugin
1. I downloaded it and installed it locally.
   Because the version of my jrebel cracked version is 5.6, I also download the 5.6 plugin accordingly.
   Address: http://dl.zeroturnaround.com/idea/jr-ide-idea-5.6.0-idea12.zip The
   local installation is as shown in the figure, select the location of your plug-in, and install it.

   IDEA needs to be restarted after installation.
2. Two buttons will appear after installation, as shown in Figure

3. Enter the directory:
C:\Users\current system user\.IntelliJIdea12\config\plugins\jr-ide-idea\lib\jrebel, use the cracked version of jrebel. jar replaces the file in the current directory.
4. Click debug, the license certification will pop up, select your crack certification file, and click ok.


ok, so far the jrebel plugin is also installed.

Now, click the debug button of the jrebel plugin to see the effect, haha, the console displays the authentication information of jrebel, etc.
However, there is an error FATAL ERROR in native method: processing of -javaagent failed


Don't worry,


check use -javaagent, Start again to see.

ok, everything works fine now.

In addition, when your files are changed, you also need to manually compile the changed files to the directory you specify (ctrl+shift+f9 or ctrl+f9), and then you can see your modification results.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326943302&siteId=291194637