mojohaus / jaxb2-maven-plugin

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

Sample PatternURLFilter usage? #155

Open jdileonardo opened 4 years ago

jdileonardo commented 4 years ago

I have a local .xsd file which imports an .xsd file from a remote url

I'm attempting to exclude that url w/o modifying the .xsd

I've tried variations of

`
                    <xjcSourceExcludeFilters>
                        <filter implementation="org.codehaus.mojo.jaxb2.shared.filters.pattern.PatternURLFilter">
                            <patterns>
                                <pattern>http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd</pattern>
                            </patterns>
                        </filter>
                    </xjcSourceExcludeFilters>
`

But i keep getting

[ERROR] Failed to execute goal org.codehaus.mojo:jaxb2-maven-plugin:2.5.0:xjc (xjc) on project dvm: Unable to parse configuration of mojo org.codehaus.mojo:jaxb2-maven-plugin:2.5.0:xjc for parameter filter: Cannot create instance of class org.codehaus.mojo.jaxb2.shared.filters.pattern.PatternURLFilter: org.codehaus.mojo.jaxb2.shared.filters.pattern.PatternURLFilter.() -> [Help 1]

There's also 0 documented examples I could find of PatternURLFilter usage.

What is the proper way to use the included "PatternURLFilter"?