Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate rebel.xml in the root of jar module with jrebel-maven-plugin

I have a maven multi-module project and I want to use jrebel, this is part of my pom.xml

<build>
...
  <plugins>
  ...
    <plugin>
    <groupId>org.zeroturnaround</groupId>
    <artifactId>jrebel-maven-plugin</artifactId>
    <version>1.1.5</version>
    <configuration>
      <relativePath>../../</relativePath>
      <rootPath>/Path/to/my/clear/case/view</rootPath>
      <addResourcesDirToRebelXml>true</addResourcesDirToRebelXml>
      <alwaysGenerate>true</alwaysGenerate>
    </configuration>
    <executions>
      <execution>
        <id>generate-rebel-xml</id>
        <phase>process-resources</phase>
        <goals>
          <goal>generate</goal>
        </goals>
      </execution>
    </executions>
  </plugin>

With this, if I type mvn jrebel:generate, the plugin creates all the rebel.xml files in ../target/classes/, but I need, as it is explained in the page of Jrebel, for my jar modules to have the rebel.xml in the root, not in ../target/classes/.

Is there any way using jrebel-maven-plugin to auto-generate the rebel.xml files of jar modules in the root?

Thanks in advance.

like image 659
Alavaros Avatar asked Jan 01 '26 04:01

Alavaros


1 Answers

rebel.xml will be copied from target/classes to .jar file root while building it.

like image 164
Margus Pala Avatar answered Jan 04 '26 18:01

Margus Pala



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!