mojohaus / jaxb2-maven-plugin

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

Configuring plugin extensions - why deprecate arguments #309

Open morvael opened 3 months ago

morvael commented 3 months ago

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?

MCMicS commented 2 weeks ago

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