How to avoid duplication of resources?

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


This topic contains 3 replies, has 1 voice, and was last updated by  Victor Dombrovsky 1 week, 1 day ago.

Viewing 4 posts - 1 through 4 (of 4 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?

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

You must be logged in to reply to this topic.