Search code examples
javamavenintellij-idea

IntelliJ "FileNotFoundException" | Only in Debug-Mode


I am trying to debug a Spring Boot project in IntelliJ, however as soon as I try do debug it, it throws a FileNotFoundExcpetion. The file /.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.0/jaxb-core.jar can not be found. And indeed the file is missing.

I am assuming it has something to do with Maven, but I can not figure out what. If I run the project without Debug-Mode activated, it works fine.


Solution

  • The issue was caused by a problem with my Maven configuration. I deleted the /.m2/repository directory and ran mvn clean install again. This fixed the problem.