How to avoid duplication of resources?

Forum on this website is being phased out. New threads or replies cannot be posted. Existing content remains available for now in read only mode. You can contact technical support at

ZeroTurnaround Homepage Forums JRebel Support How to avoid duplication of resources?


This topic contains 4 replies, has 2 voices, and was last updated by  Joonas Vali 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #67015

    I use Spring Boot and a java library that reads resources. The problem is that when I use jrebel, this library founds resources in two places:

    1. URL [jar:file:/app.jar!/BOOT-INF/classes/schema/main.graphqls]
    2. file [/root/.jrebel/cache/api/deployment/BOOT-INF/classes/schema/main.graphqls]

    here the first location is where resources are actually located, while the second location contains duplicates. It causes errors.

    How to avoid this?


    I tried to use the following:

      <dir name="/project/target/classes">
        <exclude name="**/*.graphqls"/>

    but it changes nothing.


    I use:
    – JRebel Agent 7.1.6 (201802050855).
    – Spring Boot 2.0.0.RC1

    This is the statement, that returns duplicated results:


    I can’t change it, because it is from sources of a library I use.


    BTW, I setup everything according to instruction for Spring Boot 1.x:

    IntelliJ IDEA – JRebel – Startup – Linux / 64-bit JVM / Spring Boot 1.x

    Could it cause the problem? Or (hopefully) I’m just doing something wrong?


    Joonas Vali
    Rebel Staff

    For future reference the issue is fixed in nightly build and fix is included in upcoming JRebel 7.1.7.

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘JRebel Support’ is closed to new topics and replies.