jaxb2-annotate-plugin
jaxb2-annotate-plugin copied to clipboard
Annotation plugin does not include the project's classpath when annotating generated code
See https://java.net/jira/browse/JAXB2_COMMONS-32.
Hi Lexi, The JIRA seems to be resolved. But I still face the error when the annotated classes in the project source directory are not considered.
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>0.11.0</version>
</plugin>
<plugin>
<!-- this plugin is used to add annotation for the models -->
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics-annotate</artifactId>
<version>1.0.2</version>
</plugin>
Resolved als "duplicate" of this issue. :)
ah ok. Is it planned for next versions ? Because it is practical to include the custom annotated classes (other than libraries) to the JAXB models
I understand. This should be actually maven-jaxb2-plugin issue since JAXB plugin can do nothing about classpaths. It just uses what's given. And it's maven-jaxb2-plugin which provides the classpath to JAXB plugins. Should be something like useDependenciesAsPluginClasspath.
Planned... Well, let's say it's not less planned than anything else. :)