I am running a Spring Boot project. I can run the project from IntelliJ, however when I try and do mvn spring-boot:run
I get java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
I have included
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
in my pom.xml file. I have even included java.xml.bind
as an add modules in the pom. But the issue still persists. What am I missing?