From the JRebel documentation
The rebel.xml configuration file has to be added to the deployed WAR or JAR archive. This will let the JRebel agent know which workspace paths to monitor for class and resource updates.
https://manuals.zeroturnaround.com/jrebel/standalone/maven.html
In my war configuration in pom.xml
I am explicitly removing the JRebel configuration from my war because to my understanding it serves no purpose when deployed on a server and contains workstation specific information I would rather not have visible in a war.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<packagingExcludes>
<!-- Exclude JRebel configuration from the war. -->
WEB-INF/classes/rebel.xml
</packagingExcludes>
</configuration>
</plugin>
JRebel still works fine when I run locally as a Spring Boot application, and of course my war works fine on the server without the rebel.xml
. Why does the documentation say it needs to be included in the war?