I have trying to generate Javadoc using the maven-javadoc-plugin and a custom doclet. I am using JDK 11 and I have implemented the methods of the Doclet interface. However, in one of the methods, I am trying to unmarshal an XML file. I am receiving the following error:
javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.
I have configured the javadoc-plugin as follows:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<doclint>none</doclint>
<useStandardDocletOptions>false</useStandardDocletOptions>
<outputDirectory>my.output.directory</outputDirectory>
<doclet>my.doclet/doclet>
<docletArtifact>
<groupId>my.group.id</groupId>
<artifactId>myartifact</artifactId>
<version>my.project.version</version>
</docletArtifact>
<show>private</show>
</configuration>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</plugin>
What should I do to solve this issue?