jaxb2-annotate-plugin icon indicating copy to clipboard operation
jaxb2-annotate-plugin copied to clipboard

Annotation plugin does not include the project's classpath when annotating generated code

Open highsource opened this issue 9 years ago • 4 comments
trafficstars

See https://java.net/jira/browse/JAXB2_COMMONS-32.

highsource avatar Dec 24 '15 09:12 highsource

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>

ulaBLUE avatar Jun 02 '16 13:06 ulaBLUE

Resolved als "duplicate" of this issue. :)

highsource avatar Jun 02 '16 14:06 highsource

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

ulaBLUE avatar Jun 02 '16 14:06 ulaBLUE

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. :)

highsource avatar Jun 02 '16 14:06 highsource