Expand my Community achievements bar.

Error while trying to run IntelliJ UnitTest Debugger

Avatar

Level 7

While running a UnitTest debugger, I am getting this error
Error:osgi: [site.core] Classes found in the wrong directory: {META-INF/versions/9/javax/xml/bind/ModuleUtil.class=javax.xml.bind.ModuleUtil}

How do I solve this? There is nothing on Google that can help me.

2 Replies

Avatar

Employee Advisor

Hi @AEMWizard ,

What is the JAVA version you have been using and also the bnd-maven-plugin version in POM ?

Thanks,
Milind

Avatar

Level 7

Java 11, and we are not using any bnd-maven-plugin; does not exist. 

we are using

<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>