【发布时间】:2014-08-03 12:53:38
【问题描述】:
所以我正在使用 JRebel,但我认为我目前使用它的方式有问题。
这是在我的 pom.xml 中:
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
当我部署应用程序时,我读到:
2014-08-03 15:43:42 JRebel: Directory '/Users/koraytugay/IdeaProjects/august-three/target/classes' will be monitored for changes.
2014-08-03 15:43:42 JRebel: Directory '/Users/koraytugay/IdeaProjects/august-three/src/main/webapp' will be monitored for changes.
我必须说我正在使用 IntelliJ,而我使用的服务器是 Tomcat。
我有一个简单的 Java 代码,当我点击 index.jsp 时会调用它:
public static int rollDice() {
return 11;
}
当我将值 11 更改为 9 并刷新 index.jsp 时,我看不到更改。我必须在 Maven 中进行全新安装,然后 JRebel 才能工作。
如果没有 Maven 全新安装,有什么方法可以做到这一点?当我编辑源文件时,我可以直接在我的 web-app 中看到更改吗?
谢谢。
【问题讨论】:
标签: java jsp maven intellij-idea jrebel