CXF XJC Bug671 Plugin

The CXF XJC Bug671 Plugin is specifically designed to workaround https://web.archive.org/web/20110809110802/http://java.net/jira/browse/JAXB-671 where certain namespaces could produce invalid and uncompilable code. This is not needed for the latest versions of JAXB.

To use with Maven

           <plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-xjc-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>xsdtojava</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <xsdOptions>
                        <xsdOption>
                            <extension>true</extension>
                            <xsd>${basedir}/src/main/resources/schemas/configuration/foo.xsd</xsd>
                            <extensionArgs>
                                <arg>-Xbug671</arg>
                            </extensionArgs>
                        </xsdOption>
                    </xsdOptions>
                    <extensions>
                        <extension>org.apache.cxf.xjcplugins:cxf-xjc-bug671:2.3.0</extension>
                    </extensions>
                </configuration>
            </plugin>