I have a program to generate an XML based on certain inputs, I have made use of jaxb with Moxy. I see that my code works perfectly on eclipse, but when it is being deployed or when it is being run on the cmd line from the jar, it says the following error
jakarta.xml.bind.JAXBException: Implementation of Jakarta XML Binding-API has not been found on module path or classpath.
I have a jaxb.properties file which says :
jakarta.xml.bind.JAXBContextFactory=org.eclipse.persistence.jaxb.JAXBContextFactory
Does it mean that the execution is only restricted to eclipse? Running a little clueless.
Update 1:
dependencies:
<dependency>
<groupId>XXX</groupId>
<artifactId>projectX</artifactId>
<version>0.0.1-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>3.0.0</version>
</dependency>