Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup JRebel for GAE

I need to try JRebel for my web app development:

  • Using GAE SDK version 1.8.0
  • Run through maven appengine:devserver
  • Under M2E plugin (Eclipse) or console, running Linux (Ubuntu) desktop

Documents I found online points into editing the GAE script, however what would be the approach for GAE run from Maven?

like image 855
quarks Avatar asked Sep 26 '13 19:09

quarks


People also ask

Is JRebel free for Intellij?

JRebel is free. Don't buy it. Select the "free" option (radio button) on the "buy" page.

How do I update JRebel in eclipse?

Updating the JRebel for Eclipse pluginOpen Help > Check for Updates. Select the following JRebel plugin components from the update list: JRebel, JRebel for Java EE, JRebel m2eclipse. Press Next to continue.


1 Answers

The problem here is starting up the GAE process with the JRebel JVM arguments or in general adding JVM arguments to the GAE process.

There are multiple ways of adding JVM arguments to the process, I would recommend adding those arguments to the appengine plugin

You can set JVM arguments for JRebel in your pom.xml:

<plugin>
  <groupId>com.google.appengine</groupId>
  <artifactId>appengine-maven-plugin</artifactId>
  <version>${appengine.target.version}</version>
  <configuration>
    <jvmFlags>
      <jvmFlag>-agentpath:{jrebel install directory}/lib/libjrebel64.dylib</jvmFlag>
    </jvmFlags>
    <disableUpdateCheck>true</disableUpdateCheck>
  </configuration>
</plugin>

Where libjrebel64.dylib works for macOS, and you'd use libjrebel64.so on Linux and jrebel64.dll on Windows.

like image 77
Andres Luuk Avatar answered Nov 26 '22 19:11

Andres Luuk