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

Configuring plugin extensions - why deprecate arguments

Open morvael opened this issue 1 year ago • 1 comments

I use jaxb2-maven-plugin with https://github.com/sabomichal/immutable-xjc that is configured via extra arguments. But I get this warning: "Parameter 'arguments' (user property 'xjc.arguments') is deprecated: This should be removed in the 2.0+ release, as all arguments should be handled by other parameters.". How to configure plugin extension when you'll remove this feature?

morvael avatar Mar 07 '24 13:03 morvael

With next release 1.8.3 you can configure it like:

                <configuration>
                    <packageName>com.example.myschema</packageName>
                    <plugins>
                        <plugin>fluent-api</plugin>
                        <plugin>inheritance</plugin>
                    </plugins>
                </configuration>

see https://github.com/mojohaus/jaxb2-maven-plugin/pull/327 and https://github.com/mojohaus/jaxb2-maven-plugin/issues/275

MCMicS avatar Jun 18 '24 05:06 MCMicS