mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
107 stars 77 forks source link

ObjectFactory not marked as @Generated with -mark-generated #6

Closed NargiT closed 9 years ago

NargiT commented 9 years ago

Hello,

When we add -mark-generated in the plugins (v 1.6) all classes are marked @Generated except ObjectFactory and package-info.java.

Is it a bug ? Or there is a special way to add it ?

This actually breaking build if used with checkstyle plugin.

Tigran

lennartj commented 9 years ago

At the moment, we do not have an IT for this. I'll create one so we can track this issue.

lennartj commented 9 years ago

It would appear that this behavior is the standard one for XJC.

While I strive for the Jaxb2-Maven-Plugin to simplify the usage of XJC (and SchemaGen too, of course), I am not certain it is a good idea to make the Jaxb2-Maven-Plugin alter the standard behavior of its underlying tools. I agree, though, that this seems problematic. However, I think that this issue should be logged with the XJC development team rather than with this plugin (and I also think that this issue is very valid) so that this enhancement is implemented at the correct place.

Would you please log an issue with the XJC team instead?

lennartj commented 9 years ago

IT added in e95d64c

NargiT commented 9 years ago

Yeap I did that https://github.com/gf-metro/jaxb/issues/16.

But it will require for to upgrade the version of xjc in your pluging right ?