美文网首页
IDEA JRebel 实现热部署

IDEA JRebel 实现热部署

作者: maker997 | 来源:发表于2017-11-07 21:57 被阅读96次

1.下载插件安装https://plugins.jetbrains.com/idea/plugin/4441-jrebel-for-intellij

2. install plugin from disk

3. 获取激活码从这个网站上https://my.jrebel.com/.可以用 facebook,或者 twitter账号登录.

4. 激活插件 Help --> JRebel --> Activity.输入第三步中获得的激活码

5. 选中要热部署的工程View -->Tool Windows -->JRebel -->选中当前工程

6. 用 meavn 插件生成rebel.xml. pom.xml 文件中这样配置.进入工程所在的目录执行 mvn jrebel:generate 生成 rebel.xml 就可以快乐使用热部署了.

7. 更详尽的设置请参考官方文档https://zeroturnaround.com/software/jrebel/quickstart/intellij/#!/project-configuration

<build>
    <finalName>seckill</finalName>
      <plugins>
          <plugin>
            <groupId>org.zeroturnaround</groupId>
            <artifactId>jrebel-maven-plugin</artifactId>
            <version>1.1.7</version>
            <executions>
              <execution>
                <id>generate-rebel-xml</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>generate</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
      </plugins>
  </build>

相关文章

网友评论

      本文标题:IDEA JRebel 实现热部署

      本文链接:https://www.haomeiwen.com/subject/nfssmxtx.html