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 support@zeroturnaround.com.

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

Tagged: 

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
    Posts
  • #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?

    #67016

    I tried to use the following:

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

    but it changes nothing.

    #67018

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

    This is the statement, that returns duplicated results:

    applicationContext.getResources("classpath*:**/*.graphqls")

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

    #67019

    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?

    #67057

    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.