1

I have Maven module with JRebel and Tomcat-maven-plugin. I run the tomcat:run with JRebel as shown in the screenshot. Whenever I change are reflected in the browser.

Question 1: How do I make sure that these changes are reflected by JRebel not tomcat redeployment like in Jetty plugin we make 0?

enter image description here

In Console

[2012-09-17 10:11:22] JRebel: Directory 'C:\Users\abc\Desktop\Java\IntelliJ-Projects\Struts2_Maven_HelloWorld\target\classes' will be monitored for changes.
[2012-09-17 10:11:22] JRebel: Directory 'C:\Users\abc\Desktop\Java\IntelliJ-Projects\Struts2_Maven_HelloWorld\src\main\webapp' will be monitored for changes.

Question 2: Is there any way to enable JRebel logging with -Drebel.log=true in pom.xml JRebel plugin. I am unable to enable logging.?

Pirzada
  • 4,685
  • 18
  • 60
  • 113

1 Answers1

1

If your application is redeployed by Tomcat, it looses the session. So you will start over from the first screen (login into the app again) if that the case. The plugin itself only defines reload and redeploy goals, which do not seem to trigger automatically anyway.

OR you can try the following config

            <configuration>
                <update>true</update>
            </configuration>

To enable JRebel logging, you can pass the -Drebel.log=true argument via MAVEN_OPTS environment variable (just a wild guess). Or you can specify the VM arguments in Runner tab for the Run configuration:

Maven Run confugration

Anton Arhipov
  • 6,479
  • 1
  • 35
  • 43