title: WARNING [path] bad path element ".m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.xml.bind-api-2.3.2.jar": no such file or directory
body: <p>I've decided it's time to upgrade from Java 8 to Java 11. So I've read few tutorials and made the changes in our build.</p>
  
  <p>I wanted to upgrade to </p>
  
  <pre><code>openjdk version "11.0.4" 2019-07-16
  OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
  OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
  </code></pre>
  
  <p>currently I'm using</p>
  
  <pre><code>openjdk version "1.8.0_222"
  OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_222-b10)
  OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.222-b10, mixed mode)
  </code></pre>
  
  <p>I also have</p>
  
  <pre><code>Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
  Maven home: /usr/lib/maven/3.6.0
  Java version: 11.0.4, vendor: AdoptOpenJDK, runtime: /usr/lib/jvm/java-11.0.4.11-adoptopenjdk
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux", version: "4.15.0-55-generic", arch: "amd64", family: "unix"
  </code></pre>
  
  <p>Everything looks like it works, but there was a warning in compilation, because of <code>error_prone_core</code></p>
  
  <pre><code>[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ core ---
  [INFO] Changes detected - recompiling the module!
  [INFO] Compiling 324 source files to /srv/core/target/test-classes
  WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by com.google.errorprone.bugpatterns.FutureReturnValueIgnored (file:/var/cache/maven/com/google/errorprone/error_prone_core/2.3.3/error_prone_core-2.3.3.jar) to field com.sun.tools.javac.code.Type$StructuralTypeMapping$4.this$0
  WARNING: Please consider reporting this to the maintainers of com.google.errorprone.bugpatterns.FutureReturnValueIgnored
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  </code></pre>
  
  <p>I've tried fixing the warning by adding the following </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;arg&gt;-J--illegal-access=debug&lt;/arg&gt;
  &lt;arg&gt;-J--add-opens=java.base/java.lang=ALL-UNNAMED&lt;/arg&gt;
  &lt;arg&gt;-J--add-opens=java.base/java.lang.reflect=ALL-UNNAMED&lt;/arg&gt;
  &lt;arg&gt;-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED&lt;/arg&gt;
  </code></pre>
  
  <p>but nothing happened... so I've figured I probably need to add <code>&lt;fork&gt;true&lt;/fork&gt;</code>... so I've made sure i have the correct <code>JAVA_HOME</code> configured for maven and tried with the fork... but now some modules fail the build with this warning...</p>
  
  <pre><code>[INFO] -------------------------------------------------------------
  [WARNING] COMPILATION WARNING : 
  [INFO] -------------------------------------------------------------
  [WARNING] [path] bad path element "/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.xml.bind-api-2.3.2.jar": no such file or directory
  [WARNING] [path] bad path element "/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/txw2-2.3.2.jar": no such file or directory
  [WARNING] [path] bad path element "/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/istack-commons-runtime-3.0.8.jar": no such file or directory
  [WARNING] [path] bad path element "/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/stax-ex-1.8.1.jar": no such file or directory
  [WARNING] [path] bad path element "/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/FastInfoset-1.2.16.jar": no such file or directory
  [WARNING] [path] bad path element "/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.activation-api-1.2.1.jar": no such file or directory
  [INFO] 6 warnings 
  </code></pre>
  
  <p>I'm using Spring Boot 2.2.0.M5 <code>spring-boot-dependencies</code> with very few additional version definitions. According to the <code>mvn dependency:tree</code>, the <code>jaxb-runtime</code> is imported because of hibernate</p>
  
  <pre><code>[INFO] +- org.hibernate:hibernate-core:jar:5.4.4.Final:compile
  [INFO] |  +- org.jboss.logging:jboss-logging:jar:3.4.0.Final:compile
  [INFO] |  +- org.javassist:javassist:jar:3.25.0-GA:compile
  [INFO] |  +- net.bytebuddy:byte-buddy:jar:1.10.0:compile
  [INFO] |  +- antlr:antlr:jar:2.7.7:compile
  [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.1.1.Final:compile
  [INFO] |  +- org.jboss:jandex:jar:2.0.5.Final:compile
  [INFO] |  +- com.fasterxml:classmate:jar:1.5.0:compile
  [INFO] |  +- javax.activation:javax.activation-api:jar:1.2.0:compile
  [INFO] |  +- org.dom4j:dom4j:jar:2.1.1:compile
  [INFO] |  +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
  [INFO] |  +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
  [INFO] |  \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
  [INFO] |     +- org.glassfish.jaxb:txw2:jar:2.3.2:compile
  [INFO] |     +- com.sun.istack:istack-commons-runtime:jar:3.0.8:compile
  [INFO] |     +- org.jvnet.staxex:stax-ex:jar:1.8.1:compile
  [INFO] |     +- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16:compile
  [INFO] |     \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
  </code></pre>
  
  <p>I've tried reverting to Java 8 and first resolving the problem there. This is the complete maven compiler config... And it also starts generating the warnings, if I add <code>&lt;fork&gt;true&lt;/fork&gt;</code></p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.8.1&lt;/version&gt;
      &lt;configuration combine.self="append"&gt;
          &lt;compilerId&gt;javac-with-errorprone&lt;/compilerId&gt;
          &lt;forceJavacCompilerUse&gt;true&lt;/forceJavacCompilerUse&gt;
          &lt;source&gt;8&lt;/source&gt;
          &lt;target&gt;8&lt;/target&gt;
          &lt;compilerArgs combine.self="override"&gt;
              &lt;arg&gt;-Werror&lt;/arg&gt;
              &lt;arg&gt;-Xlint:all,-fallthrough,-processing,-serial,-classfile&lt;/arg&gt;
              &lt;arg&gt;-parameters&lt;/arg&gt;
              &lt;arg&gt;-XDcompilePolicy=simple&lt;/arg&gt;
              &lt;arg&gt;-XepDisableWarningsInGeneratedCode&lt;/arg&gt;
              &lt;arg&gt;-XepOpt:Immutable:KnownImmutable=javax.money.CurrencyUnit&lt;/arg&gt;
              &lt;arg&gt;-Xep:ConstantField:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:ClassName:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:DivZero:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:EmptyIf:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:IterablePathParameter:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:LongLiteralLowerCaseSuffix:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:AnnotationPosition:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:EmptyTopLevelDeclaration:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:EqualsBrokenForNull:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:FunctionalInterfaceClash:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:InvalidInlineTag:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:InvalidParam:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:MissingDefault:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:NonCanonicalStaticMemberImport:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:PrimitiveArrayPassedToVarargsMethod:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:RedundantOverride:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:RedundantThrows:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:StaticQualifiedUsingExpression:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:StringEquality:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:UnusedException:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:ConstantField:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:MultiVariableDeclaration:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:MultipleTopLevelClasses:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:MultipleUnaryOperatorsInMethodCall:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:PrivateConstructorForUtilityClass:WARN&lt;/arg&gt;
              &lt;arg&gt;-Xep:UngroupedOverloads:WARN&lt;/arg&gt;
          &lt;/compilerArgs&gt;
          &lt;annotationProcessorPaths combine.self="append"/&gt;
          &lt;showWarnings&gt;true&lt;/showWarnings&gt;
      &lt;/configuration&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.plexus&lt;/groupId&gt;
              &lt;artifactId&gt;plexus-compiler-javac-errorprone&lt;/artifactId&gt;
              &lt;version&gt;2.8.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.errorprone&lt;/groupId&gt;
              &lt;artifactId&gt;error_prone_core&lt;/artifactId&gt;
              &lt;version&gt;2.3.3&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Also, if I start locally the correctly working version of our application, this line is logged by Spring. It is not logged on production server, as there is no <code>restartedMain</code> thread, which is present only on local machine, where devtools is present. I believe it is related.</p>
  
  <pre><code>16:48:22.397 [restartedMain  ] INFO       o.s.boot.devtools.restart.ChangeableUrls: The Class-Path manifest attribute in /home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.jar referenced one or more files that do not exist: file:/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.xml.bind-api-2.3.2.jar,file:/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/txw2-2.3.2.jar,file:/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/istack-commons-runtime-3.0.8.jar,file:/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/stax-ex-1.8.1.jar,file:/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/FastInfoset-1.2.16.jar,file:/home/fprochazka/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jakarta.activation-api-1.2.1.jar
  </code></pre>
  
  <p>My guess is that the <code>jaxb-runtime</code> is broken in a way, that references non-existent JARs, but because the classes are available, it still works.</p>
  
  <p>I have no idea how to fix this or where to report such bug. Any ideas? Thanks</p>