├── plugin-3.0 ├── .gitignore └── src │ ├── site │ └── site.xml │ └── main │ ├── resources │ └── META-INF │ │ └── m2e │ │ └── lifecycle-mapping-metadata.xml │ └── java │ └── org │ └── jvnet │ └── mjiip │ └── v_3_0 │ ├── LoggingCodeWriter.java │ └── LoggingErrorReceiver.java ├── plugin-4.0 ├── .gitignore └── src │ ├── site │ └── site.xml │ └── main │ ├── resources │ └── META-INF │ │ └── m2e │ │ └── lifecycle-mapping-metadata.xml │ └── java │ └── org │ └── jvnet │ └── mjiip │ └── v_4_0 │ ├── LoggingCodeWriter.java │ └── LoggingErrorReceiver.java ├── plugin ├── .gitignore └── src │ ├── site │ └── site.xml │ └── main │ ├── resources │ └── META-INF │ │ └── m2e │ │ └── lifecycle-mapping-metadata.xml │ └── java │ └── org │ └── jvnet │ └── mjiip │ └── v_2 │ └── XJC2Mojo.java ├── testing ├── .gitignore └── src │ ├── main │ └── resources │ │ └── META-INF │ │ └── services │ │ └── com.sun.tools.xjc.Plugin │ ├── site │ └── site.xml │ └── test │ ├── resources │ └── log4j.properties │ └── java │ └── org │ └── jvnet │ └── jaxb2 │ └── maven2 │ └── test │ └── plugin │ └── foo │ └── tests │ └── RunFooPlugin.java ├── tests ├── p o │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ └── binding.xjb │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── mjiip │ │ │ └── v_2 │ │ │ └── tests │ │ │ └── p_o │ │ │ ├── RunXJC.java │ │ │ └── RunP_OPlugin.java │ └── pom.xml ├── res │ ├── .gitignore │ └── src │ │ ├── main │ │ ├── resources │ │ │ ├── catalog.cat │ │ │ └── bindings.xjb │ │ └── schema │ │ │ └── ogc │ │ │ └── wms │ │ │ └── 1.3.0 │ │ │ └── exceptions_1_3_0.xsd │ │ └── test │ │ └── java │ │ └── org │ │ └── jvnet │ │ └── jaxb2 │ │ └── maven2 │ │ └── tests │ │ └── res │ │ └── RunResMojo.java ├── tse │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── java │ │ │ └── a │ │ │ │ ├── ObjectFactory.java │ │ │ │ └── A2Enum.java │ │ │ └── resources │ │ │ ├── b.xsd │ │ │ └── a.xsd │ └── pom.xml ├── two │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ └── schema.xs │ │ └── test │ │ │ ├── samples │ │ │ └── 1.xml │ │ │ └── resources │ │ │ └── log4j.properties │ ├── build-1.5.bat │ └── build-1.6.bat ├── catalog │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ ├── catalog.cat │ │ │ │ ├── schema_a.xsd │ │ │ │ └── schema_b.xsd │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── tests │ │ │ └── catalog │ │ │ ├── RunPlainCatalogMojo.java │ │ │ └── RunCatalogMojo.java │ └── pom.xml ├── issues │ ├── .gitignore │ └── src │ │ ├── main │ │ ├── resources │ │ │ ├── depends.txt │ │ │ ├── depends.dep │ │ │ ├── binding.xjb │ │ │ └── schema.xsd │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── tests │ │ │ └── issues │ │ │ └── common │ │ │ └── Generated.java │ │ └── test │ │ └── resources │ │ └── log4j.properties ├── java-9 │ ├── .gitignore │ ├── install-10.bat │ ├── install-8.bat │ ├── install-9.bat │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ ├── SimpleClass.xsd │ │ │ │ ├── SimpleClassWithOtherName.xsd │ │ │ │ └── SimpleClassWithPackage.xsd │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── java9 │ │ │ └── Java9Test.java │ └── pom.xml ├── po-2.2 │ ├── .gitignore │ ├── build-1.5.bat │ ├── build-1.6.bat │ └── pom.xml ├── po-2.3 │ ├── .gitignore │ └── pom.xml ├── po-3.0 │ ├── .gitignore │ └── pom.xml ├── po-scd │ ├── .gitignore │ ├── build-1.5.bat │ ├── build-1.6.bat │ ├── src │ │ └── main │ │ │ └── resources │ │ │ └── bindings.xjb │ └── pom.xml ├── wsdl-file │ ├── .gitignore │ ├── build-1.5.bat │ ├── build-1.6.bat │ ├── src │ │ └── test │ │ │ └── java │ │ │ └── net │ │ │ └── webservicex │ │ │ └── test │ │ │ └── JAXBContextTest.java │ └── pom.xml ├── JAXB-1044 │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ ├── catalog.cat │ │ │ │ ├── a.xjb │ │ │ │ ├── b.xsd │ │ │ │ └── a.xsd │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── tests │ │ │ └── JAXB_1044 │ │ │ └── RunJAXB_1044Mojo.java │ └── pom.xml ├── catalog-xml │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ ├── catalog.xml │ │ │ │ ├── schema_a.xsd │ │ │ │ └── schema_b.xsd │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── tests │ │ │ └── catalog │ │ │ ├── RunPlainCatalogMojo.java │ │ │ └── RunCatalogMojo.java │ └── pom.xml ├── episodes │ ├── a │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── a.xjb │ │ │ │ └── a.xsd │ │ └── pom.xml │ ├── b │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── catalog.cat │ │ │ │ └── b.xsd │ │ └── pom.xml │ ├── c │ │ ├── .gitignore │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ └── c.xsd │ ├── d │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── catalog.cat │ │ │ │ └── d.xsd │ │ └── pom.xml │ ├── e │ │ ├── .gitignore │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ ├── catalog.cat │ │ │ └── d.xsd │ └── pom.xml ├── gh-issue-16 │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── resources │ │ │ └── ab │ │ │ ├── catalog.cat │ │ │ ├── a.xjb │ │ │ ├── b.xsd │ │ │ └── a.xsd │ └── pom.xml ├── gh-issue-19 │ ├── a │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── a │ │ │ │ └── a.xsd │ │ └── pom.xml │ ├── b │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── b │ │ │ │ ├── b.cat │ │ │ │ └── b.xsd │ │ └── pom.xml │ └── pom.xml ├── gh-issue-22 │ ├── a │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ └── a.xsd │ ├── b │ │ ├── .gitignore │ │ └── pom.xml │ └── pom.xml ├── xjc-simple │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── resources │ │ │ └── purchaseorder.xjb │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-49 │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── catalog.cat │ │ │ └── schema │ │ │ └── ogc │ │ │ └── wms │ │ │ └── 1.3.0 │ │ │ └── exceptions_1_3_0.xsd │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-53 │ ├── a │ │ ├── .gitignore │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ └── a.xsd │ ├── b │ │ ├── .gitignore │ │ └── src │ │ │ ├── main │ │ │ └── resources │ │ │ │ ├── catalog.cat │ │ │ │ └── b.xsd │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── tests │ │ │ └── MAVEN_JAXB2_PLUGIN_53 │ │ │ └── b │ │ │ └── RunMAVEN_JAXB2_PLUGIN_53Mojo.java │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-69 │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── resources │ │ │ └── simple.xsd │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-70 │ ├── .gitignore │ └── src │ │ └── main │ │ └── resources │ │ └── bindings.xjb ├── MAVEN_JAXB2_PLUGIN-79 │ ├── a │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── a.xjb │ │ │ │ └── a.xsd │ │ └── pom.xml │ ├── b │ │ ├── .gitignore │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ ├── catalog.cat │ │ │ └── b.xsd │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-82 │ ├── a │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── a.xsd │ │ └── pom.xml │ ├── b │ │ ├── .gitignore │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ ├── catalog.cat │ │ │ ├── b.xjb │ │ │ └── b.xsd │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-86 │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── resources │ │ │ ├── a │ │ │ └── a.xsd │ │ │ └── b │ │ │ └── b.xsd │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-87 │ ├── .gitignore │ └── pom.xml ├── gh-issue-23 │ ├── one-non-strict │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── META-INF │ │ │ │ └── one │ │ │ │ │ └── catalog.xml │ │ │ │ ├── one │ │ │ │ ├── b1.xsd │ │ │ │ ├── b.xsd │ │ │ │ └── a.xsd │ │ │ │ └── two │ │ │ │ └── p.xsd │ │ └── pom.xml │ ├── two-non-strict │ │ ├── .gitignore │ │ └── src │ │ │ └── main │ │ │ └── resources │ │ │ ├── META-INF │ │ │ └── two │ │ │ │ └── catalog.xml │ │ │ ├── one │ │ │ ├── b1.xsd │ │ │ ├── b.xsd │ │ │ └── a.xsd │ │ │ └── two │ │ │ └── p.xsd │ └── pom.xml ├── MAVEN_JAXB2_PLUGIN-77 │ ├── service │ │ ├── .gitignore │ │ └── src │ │ │ ├── main │ │ │ ├── jaxb │ │ │ │ └── catalog.cat │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── project │ │ │ │ └── schemas │ │ │ │ └── Service.xsd │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ └── tests │ │ │ └── MAVEN_JAXB2_PLUGIN_77 │ │ │ └── RunMAVEN_JAXB2_PLUGIN_77Mojo.java │ ├── common-types │ │ ├── .gitignore │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── project │ │ │ │ └── schemas │ │ │ │ └── CommonTypes.xsd │ │ └── pom.xml │ └── pom.xml ├── wsdl │ ├── .gitignore │ ├── build-1.5.bat │ ├── build-1.6.bat │ ├── src │ │ └── test │ │ │ └── java │ │ │ └── net │ │ │ └── webservicex │ │ │ └── test │ │ │ └── JAXBContextTest.java │ └── pom.xml ├── gh-issue-58 │ ├── .gitignore │ └── pom.xml ├── rnc │ ├── .gitignore │ └── src │ │ └── test │ │ └── java │ │ └── org │ │ └── jvnet │ │ └── jaxb2 │ │ └── maven2 │ │ └── tests │ │ └── rnc │ │ ├── DatatypeLibraryLoaderTest.java │ │ └── RunRNCMojo.java ├── full-build-9.bat ├── full-build-1.7.bat └── full-build-1.8.bat ├── plugin-2.2 ├── .gitignore └── src │ ├── site │ └── site.xml │ └── main │ ├── resources │ └── META-INF │ │ └── m2e │ │ └── lifecycle-mapping-metadata.xml │ └── java │ └── org │ └── jvnet │ └── mjiip │ └── v_2_2 │ ├── LoggingCodeWriter.java │ └── LoggingErrorReceiver.java ├── plugin-2.3 ├── .gitignore └── src │ ├── site │ └── site.xml │ └── main │ ├── resources │ └── META-INF │ │ └── m2e │ │ └── lifecycle-mapping-metadata.xml │ └── java │ └── org │ └── jvnet │ └── mjiip │ └── v_2_3 │ ├── LoggingCodeWriter.java │ └── LoggingErrorReceiver.java ├── plugin-core ├── .gitignore └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── jvnet │ │ │ └── jaxb2 │ │ │ └── maven2 │ │ │ ├── net │ │ │ ├── SchemeAwareURILastModifiedResolver.java │ │ │ ├── HttpURILastModifiedResolver.java │ │ │ ├── HttpsURILastModifiedResolver.java │ │ │ ├── URILastModifiedResolver.java │ │ │ ├── AbstractSchemeAwareURILastModifiedResolver.java │ │ │ └── FileURILastModifiedResolver.java │ │ │ ├── IOptionsFactory.java │ │ │ ├── IDependencyResourceResolver.java │ │ │ ├── util │ │ │ ├── StringUtils.java │ │ │ └── LocaleUtils.java │ │ │ ├── ResourceEntry.java │ │ │ ├── plugin │ │ │ └── logging │ │ │ │ └── NullLog.java │ │ │ └── resolver │ │ │ └── tools │ │ │ ├── ClasspathCatalogResolver.java │ │ │ └── ReResolvingEntityResolverWrapper.java │ └── resources │ │ └── org │ │ └── jvnet │ │ └── jaxb2 │ │ └── maven2 │ │ └── addIfExistsToEpisodeSchemaBindings.xslt │ └── test │ ├── resources │ └── org │ │ └── jvnet │ │ └── jaxb2 │ │ └── maven2 │ │ └── resolver │ │ └── tools │ │ └── tests │ │ ├── a │ │ └── catalog.cat │ │ └── b │ │ └── catalog.cat │ └── java │ └── org │ └── jvnet │ └── jaxb2 │ └── maven2 │ ├── tests │ └── AddIfExistsToEpisodeSchemaBindingsTest.java │ ├── util │ └── tests │ │ └── CollectionsUtilsTests.java │ ├── resolver │ └── tools │ │ └── tests │ │ └── MavenCatalogResolverTest.java │ └── net │ └── tests │ └── URILastModifiedResolverTest.java ├── samples ├── dtd │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── assembly │ │ │ └── maven-src.xml │ ├── pom.xml │ └── project-pom.xml ├── po │ ├── .gitignore │ ├── src │ │ └── main │ │ │ └── assembly │ │ │ └── maven-src.xml │ ├── project-pom.xml │ └── pom.xml ├── catalog │ ├── .gitignore │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ ├── catalog.cat │ │ │ ├── schema_a.xsd │ │ │ └── schema_b.xsd │ │ │ └── assembly │ │ │ └── maven-src.xml │ ├── pom.xml │ └── project-pom.xml ├── episode │ ├── .gitignore │ ├── b │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ ├── catalog.cat │ │ │ │ └── b.xsd │ │ └── project-pom.xml │ ├── a │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── a.xsd │ │ └── project-pom.xml │ ├── c │ │ ├── src │ │ │ └── main │ │ │ │ └── resources │ │ │ │ └── c.xsd │ │ └── project-pom.xml │ ├── src │ │ └── main │ │ │ └── assembly │ │ │ └── maven-src.xml │ ├── pom.xml │ └── project-pom.xml └── jaxbplugins │ ├── .gitignore │ ├── src │ └── main │ │ └── assembly │ │ └── maven-src.xml │ ├── pom.xml │ └── project-pom.xml ├── dist └── .gitignore ├── .gitignore ├── src └── site │ └── site.xml ├── www ├── alm-process │ └── snippets │ │ └── page.xml ├── docs │ └── guide.html └── project_tools.html ├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── LICENSE ├── qrelease.sh └── qrelease.bat /plugin-3.0/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /plugin-4.0/.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | -------------------------------------------------------------------------------- /plugin/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /testing/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/p o/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/res/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/tse/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/two/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /plugin-2.2/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /plugin-2.3/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /plugin-core/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /samples/dtd/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /samples/po/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/issues/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/java-9/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/po-2.2/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/po-2.3/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/po-3.0/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/po-scd/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/wsdl-file/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /dist/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /files/ 3 | -------------------------------------------------------------------------------- /samples/catalog/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /samples/episode/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /samples/jaxbplugins/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/JAXB-1044/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/catalog-xml/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/episodes/a/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/episodes/b/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/episodes/c/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/episodes/d/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/episodes/e/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-16/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-19/a/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-19/b/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-22/a/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-22/b/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/xjc-simple/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-49/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-53/a/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-53/b/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-69/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-70/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/a/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/b/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/a/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/b/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-86/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-87/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-23/one-non-strict/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/gh-issue-23/two-non-strict/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/issues/src/main/resources/depends.txt: -------------------------------------------------------------------------------- 1 | See issue #99. -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-77/service/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-77/common-types/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /tests/two/src/main/resources/schema.xs: -------------------------------------------------------------------------------- 1 | This file must be excluded. -------------------------------------------------------------------------------- /tests/wsdl/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | .classpath 3 | .project 4 | .settings 5 | -------------------------------------------------------------------------------- /tests/gh-issue-58/.gitignore: -------------------------------------------------------------------------------- 1 | .settings 2 | .classpath 3 | .project 4 | /target/ 5 | -------------------------------------------------------------------------------- /tests/rnc/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | /.settings/ 3 | /.classpath 4 | /.project 5 | -------------------------------------------------------------------------------- /tests/JAXB-1044/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | REWRITE_SYSTEM "http://www.ab.org" "." 2 | 3 | -------------------------------------------------------------------------------- /tests/gh-issue-16/src/main/resources/ab/catalog.cat: -------------------------------------------------------------------------------- 1 | REWRITE_SYSTEM "http://www.ab.org" "../ab" 2 | 3 | -------------------------------------------------------------------------------- /tests/res/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | REWRITE_SYSTEM "http://schemas.opengis.net" "../schema/ogc" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | *.iml 3 | /err 4 | /std 5 | **/.classpath 6 | **/.project 7 | **/.settings 8 | target -------------------------------------------------------------------------------- /tests/java-9/install-10.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA10_HOME% 3 | call mvn clean install 4 | endlocal -------------------------------------------------------------------------------- /tests/java-9/install-8.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA8_HOME% 3 | call mvn clean install 4 | endlocal -------------------------------------------------------------------------------- /tests/java-9/install-9.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA9_HOME% 3 | call mvn clean install 4 | endlocal -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-49/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | REWRITE_SYSTEM "http://schemas.opengis.net" "../schema/ogc" -------------------------------------------------------------------------------- /tests/issues/src/main/resources/depends.dep: -------------------------------------------------------------------------------- 1 | See issue #99. 2 | If this file is changed, compilation will be forced. -------------------------------------------------------------------------------- /testing/src/main/resources/META-INF/services/com.sun.tools.xjc.Plugin: -------------------------------------------------------------------------------- 1 | org.jvnet.jaxb2.maven2.test.plugin.foo.FooPlugin 2 | -------------------------------------------------------------------------------- /tests/two/build-1.5.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA5_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/two/build-1.6.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA6_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/wsdl/build-1.5.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA5_HOME% 3 | call mvn -X -e -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/wsdl/build-1.6.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA6_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /plugin-2.3/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${reports} 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugin-3.0/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${reports} 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugin-4.0/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${reports} 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/po-2.2/build-1.5.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA5_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/po-scd/build-1.5.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA5_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/po-scd/build-1.6.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA6_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/wsdl-file/build-1.5.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA5_HOME% 3 | call mvn -X -e -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /tests/wsdl-file/build-1.6.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA6_HOME% 3 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 4 | endlocal -------------------------------------------------------------------------------- /plugin-2.2/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${reports} 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugin/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${reports} 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/po-2.2/build-1.6.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | set JAVA_HOME=%JAVA6_HOME% 3 | java -version 4 | call mvn -X -Dmaven.test.skip=true clean install >std 2>err 5 | endlocal -------------------------------------------------------------------------------- /testing/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${reports} 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/issues/src/main/java/org/jvnet/jaxb2/maven2/tests/issues/common/Generated.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.issues.common; 2 | 3 | public class Generated 4 | { 5 | } 6 | -------------------------------------------------------------------------------- /tests/full-build-9.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | echo Setting JAVA_HOME to %JAVA9_HOME%. 3 | set JAVA_HOME=%JAVA9_HOME% 4 | call mvn clean install -Pall,sonatype-oss-release -DperformRelease --fail-at-end 5 | endlocal -------------------------------------------------------------------------------- /tests/full-build-1.7.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | echo Setting JAVA_HOME to %JAVA7_HOME%. 3 | set JAVA_HOME=%JAVA7_HOME% 4 | call mvn clean install -Pall,sonatype-oss-release -DperformRelease --fail-at-end 5 | endlocal -------------------------------------------------------------------------------- /tests/full-build-1.8.bat: -------------------------------------------------------------------------------- 1 | setlocal 2 | echo Setting JAVA_HOME to %JAVA8_HOME%. 3 | set JAVA_HOME=%JAVA8_HOME% 4 | call mvn clean install -Pall,sonatype-oss-release -DperformRelease --fail-at-end 5 | endlocal -------------------------------------------------------------------------------- /tests/two/src/test/samples/1.xml: -------------------------------------------------------------------------------- 1 | 2 | a 3 | b 4 | c 5 | d 6 | e 7 | 8 | 0 9 | 1 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/catalog-xml/src/main/resources/catalog.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/tse/src/main/java/a/ObjectFactory.java: -------------------------------------------------------------------------------- 1 | package a; 2 | 3 | import javax.xml.bind.annotation.XmlRegistry; 4 | 5 | @XmlRegistry 6 | public class ObjectFactory { 7 | 8 | public ObjectFactory() { 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /tests/catalog/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "http://example.org/schemas" "." 6 | 7 | -------------------------------------------------------------------------------- /tests/catalog/src/main/resources/schema_a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/catalog/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "http://example.org/schemas" "." 6 | 7 | -------------------------------------------------------------------------------- /samples/catalog/src/main/resources/schema_a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/catalog-xml/src/main/resources/schema_a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/net/SchemeAwareURILastModifiedResolver.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.net; 2 | 3 | public interface SchemeAwareURILastModifiedResolver extends 4 | URILastModifiedResolver { 5 | 6 | public String getScheme(); 7 | 8 | } 9 | -------------------------------------------------------------------------------- /plugin-core/src/test/resources/org/jvnet/jaxb2/maven2/resolver/tools/tests/a/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "http://www.w3.org" "w3c" 6 | -------------------------------------------------------------------------------- /plugin-core/src/test/resources/org/jvnet/jaxb2/maven2/resolver/tools/tests/b/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "http://www.w3.org" "w3c" 6 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-77/service/src/main/jaxb/catalog.cat: -------------------------------------------------------------------------------- 1 | PUBLIC "http://company.com/project/schemas/common-types" "classpath:META-INF/project/schemas/CommonTypes.xsd" 2 | PUBLIC "http://company.com/project/schemas/iso/currency" "classpath:META-INF/project/schemas/ISOCurrencyCodeType-V2008.xsd" 3 | -------------------------------------------------------------------------------- /tests/episodes/d/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | PUBLIC "a" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-tests-episodes-a:jar::!/a.xsd" 6 | -------------------------------------------------------------------------------- /tests/episodes/e/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | PUBLIC "a" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-tests-episodes-a:jar::!/a.xsd" 6 | -------------------------------------------------------------------------------- /testing/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootCategory=DEBUG, stdout 2 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 3 | log4j.appender.stdout.target=system.out 4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n -------------------------------------------------------------------------------- /tests/two/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootCategory=DEBUG, stdout 2 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 3 | log4j.appender.stdout.target=system.out 4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n -------------------------------------------------------------------------------- /tests/gh-issue-23/two-non-strict/src/main/resources/META-INF/two/catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/IOptionsFactory.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2; 2 | 3 | import org.apache.maven.plugin.MojoExecutionException; 4 | 5 | public interface IOptionsFactory 6 | { 7 | O createOptions (OptionsConfiguration optionsConfiguration) throws MojoExecutionException; 8 | } 9 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-70/src/main/resources/bindings.xjb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/gh-issue-19/b/src/main/resources/b/b.cat: -------------------------------------------------------------------------------- 1 | REWRITE_SYSTEM "../a" "maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-gh-issue-19-a:jar::!/a" 2 | REWRITE_SYSTEM "file:/C:/Projects/workspaces/mj2p/maven-jaxb2-plugin-project/tests/gh-issue-19/b/src/main/resources/a" "maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-gh-issue-19-a:jar::!/a" -------------------------------------------------------------------------------- /src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/b/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "http://www.ab.org" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82-a:jar::!" 6 | 7 | -------------------------------------------------------------------------------- /tests/episodes/a/src/main/resources/a.xjb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/p o/src/main/resources/binding.xjb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/IDependencyResourceResolver.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2; 2 | 3 | import java.net.URL; 4 | 5 | import org.apache.maven.plugin.MojoExecutionException; 6 | 7 | public interface IDependencyResourceResolver 8 | { 9 | URL resolveDependencyResource (DependencyResource dependencyResource) throws MojoExecutionException; 10 | } 11 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/b/src/main/resources/b.xjb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/JAXB-1044/src/main/resources/a.xjb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/JAXB-1044/src/main/resources/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/gh-issue-16/src/main/resources/ab/a.xjb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/gh-issue-23/one-non-strict/src/main/resources/META-INF/one/catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /samples/episode/b/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "https://maven-jaxb2-plugin.dev.java.net/svn/maven-jaxb2-plugin/trunk/samples/episode/a/src/main/resources/a.xsd" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-sample-episode-a-maven!/a.xsd" -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/a/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-86/src/main/resources/a/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/gh-issue-16/src/main/resources/ab/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/gh-issue-19/a/src/main/resources/a/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-86/src/main/resources/b/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/episodes/b/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "https://raw.githubusercontent.com/evolvedbinary/jvnet-jaxb-maven-plugin/main/tests/episodes/a/src/main/resources/a.xsd" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-tests-episodes-a:jar::!/a.xsd" 6 | 7 | -------------------------------------------------------------------------------- /tests/issues/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootCategory=DEBUG, stdout 2 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 3 | log4j.appender.stdout.target=system.out 4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.stdout.layout.ConversionPattern=%m%n %c%n%n 6 | log4j.logger.org.apache.commons.digester=INFO 7 | log4j.logger.org.jvnet.hyperjaxb3=DEBUG 8 | log4j.logger.org.hibernate=WARN -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/net/HttpURILastModifiedResolver.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.net; 2 | 3 | import org.apache.maven.plugin.logging.Log; 4 | 5 | public class HttpURILastModifiedResolver extends AbstractHTTPURILastModifiedResolver{ 6 | 7 | public static final String SCHEME = "http"; 8 | 9 | public HttpURILastModifiedResolver(Log logger) { 10 | super(SCHEME, logger); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-53/b/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | PUBLIC "http://maven-jaxb2-plugin/samples/episode/a" "a/a.xsd" 5 | -- 6 | PUBLIC "http://maven-jaxb2-plugin/samples/episode/a" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-53-a:jar::!/a.xsd" 7 | -------------------------------------------------------------------------------- /tests/catalog/src/main/resources/schema_b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/net/HttpsURILastModifiedResolver.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.net; 2 | 3 | import org.apache.maven.plugin.logging.Log; 4 | 5 | public class HttpsURILastModifiedResolver extends AbstractHTTPURILastModifiedResolver{ 6 | 7 | public static final String SCHEME = "https"; 8 | 9 | public HttpsURILastModifiedResolver(Log logger) { 10 | super(SCHEME, logger); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /samples/catalog/src/main/resources/schema_b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/catalog-xml/src/main/resources/schema_b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/gh-issue-23/one-non-strict/src/main/resources/one/b1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/gh-issue-23/two-non-strict/src/main/resources/one/b1.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/a/src/main/resources/a.xjb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/xjc-simple/src/main/resources/purchaseorder.xjb: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/p o/src/test/java/org/jvnet/mjiip/v_2/tests/p_o/RunXJC.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.mjiip.v_2.tests.p_o; 2 | 3 | import com.sun.tools.xjc.Driver; 4 | 5 | public class RunXJC { 6 | 7 | public static void main(String args[]) throws Exception { 8 | Driver.main(new String[] { "src\\main\\resources\\purchaseorder.xsd", 9 | "-b", "src\\main\\resources\\binding.xjb", "-d", 10 | "target/generated-sources/xjc" }); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /www/alm-process/snippets/page.xml: -------------------------------------------------------------------------------- 1 | 2 | index.htmlSubprojects 3 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: maven 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | ignore: 9 | - dependency-name: org.jvnet.staxex:stax-ex 10 | versions: 11 | - 2.0.0 12 | - dependency-name: com.sun.istack:istack-commons-tools 13 | versions: 14 | - 4.0.0 15 | - dependency-name: com.sun.istack:istack-commons-runtime 16 | versions: 17 | - 4.0.0 18 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/b/src/main/resources/catalog.cat: -------------------------------------------------------------------------------- 1 | -- 2 | If the parameter isn't working, this link to schema A is 3 | not recognized and the test will fail because of a missing schema. 4 | -- 5 | REWRITE_SYSTEM "https://raw.githubusercontent.com/evolvedbinary/jvnet-jaxb-maven-plugin/main/tests/MAVEN_JAXB2_PLUGIN-79/a/src/main/resources/a.xsd" "maven:com.evolvedbinary.maven.jvnet:jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-79-a:jar::!/a.xsd" 6 | 7 | -------------------------------------------------------------------------------- /tests/tse/src/main/resources/b.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /www/docs/guide.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Maven2 JAXB2 Plugin User Guide 5 | 6 | 7 |

User guide was moved to the following addres: http://confluence.highsource.org/display/MJIIP/User+Guide. 8 | Please update your bookmarks.

9 | 10 | -------------------------------------------------------------------------------- /tests/po-scd/src/main/resources/bindings.xjb: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/p o/src/test/java/org/jvnet/mjiip/v_2/tests/p_o/RunP_OPlugin.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.mjiip.v_2.tests.p_o; 2 | 3 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 4 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 5 | 6 | public class RunP_OPlugin extends RunXJC2Mojo { 7 | 8 | @Override 9 | protected void configureMojo(AbstractXJCMojo mojo) { 10 | super.configureMojo(mojo); 11 | // mojo.setExtension(true); 12 | // mojo.setForceRegenerate(true); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/net/URILastModifiedResolver.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.net; 2 | 3 | import java.net.URI; 4 | 5 | public interface URILastModifiedResolver { 6 | 7 | /** 8 | * Finds out the last modification date for an URI. 9 | * 10 | * @param uri 11 | * URI to find out the last modification date for. 12 | * @return Last modification date or null if unknown. 13 | */ 14 | public Long getLastModified(URI uri); 15 | } 16 | -------------------------------------------------------------------------------- /tests/java-9/src/main/resources/SimpleClass.xsd: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/tse/src/main/java/a/A2Enum.java: -------------------------------------------------------------------------------- 1 | package a; 2 | 3 | import javax.xml.bind.annotation.XmlEnum; 4 | import javax.xml.bind.annotation.XmlType; 5 | 6 | 7 | @XmlType(name = "A2EnumType", namespace = "a") 8 | @XmlEnum 9 | public enum A2Enum { 10 | 11 | ABC, 12 | DEF, 13 | GHI; 14 | 15 | public String value() { 16 | return name(); 17 | } 18 | 19 | public static A2Enum fromValue(String v) { 20 | return valueOf(v); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /tests/gh-issue-23/one-non-strict/src/main/resources/two/p.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/gh-issue-23/two-non-strict/src/main/resources/two/p.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/gh-issue-23/one-non-strict/src/main/resources/one/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/gh-issue-23/two-non-strict/src/main/resources/one/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/gh-issue-19/b/src/main/resources/b/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/JAXB-1044/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/res/src/main/resources/bindings.xjb: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/gh-issue-16/src/main/resources/ab/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/b/src/main/resources/b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /plugin-2.2/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | generate 8 | 9 | 10 | 11 | 12 | true 13 | true 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /plugin-2.3/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | generate 8 | 9 | 10 | 11 | 12 | true 13 | true 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /plugin-3.0/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | generate 8 | 9 | 10 | 11 | 12 | true 13 | true 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /plugin-4.0/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | generate 8 | 9 | 10 | 11 | 12 | true 13 | true 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | generate 8 | 9 | 10 | 11 | 12 | true 13 | true 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/issues/src/main/resources/binding.xjb: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /testing/src/test/java/org/jvnet/jaxb2/maven2/test/plugin/foo/tests/RunFooPlugin.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.test.plugin.foo.tests; 2 | 3 | import java.io.File; 4 | import java.util.Collections; 5 | import java.util.List; 6 | 7 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 8 | 9 | public class RunFooPlugin extends RunXJC2Mojo { 10 | 11 | @Override 12 | public File getSchemaDirectory() { 13 | return new File(getBaseDir(), "src/test/resources"); 14 | } 15 | 16 | @Override 17 | public List getArgs() { 18 | return Collections.singletonList("-Xfoo"); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /samples/dtd/src/main/assembly/maven-src.xml: -------------------------------------------------------------------------------- 1 | 2 | maven-src 3 | 4 | zip 5 | 6 | 7 | 8 | 9 | README* 10 | LICENSE* 11 | NOTICE* 12 | 13 | 14 | 15 | src 16 | 17 | 18 | 19 | 20 | ${basedir}/project-pom.xml 21 | pom.xml 22 | true 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /samples/po/src/main/assembly/maven-src.xml: -------------------------------------------------------------------------------- 1 | 2 | maven-src 3 | 4 | zip 5 | 6 | 7 | 8 | 9 | README* 10 | LICENSE* 11 | NOTICE* 12 | 13 | 14 | 15 | src 16 | 17 | 18 | 19 | 20 | ${basedir}/project-pom.xml 21 | pom.xml 22 | true 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /plugin-core/src/main/resources/org/jvnet/jaxb2/maven2/addIfExistsToEpisodeSchemaBindings.xslt: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | true 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /samples/catalog/src/main/assembly/maven-src.xml: -------------------------------------------------------------------------------- 1 | 2 | maven-src 3 | 4 | zip 5 | 6 | 7 | 8 | 9 | README* 10 | LICENSE* 11 | NOTICE* 12 | 13 | 14 | 15 | src 16 | 17 | 18 | 19 | 20 | ${basedir}/project-pom.xml 21 | pom.xml 22 | true 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/catalog/src/test/java/org/jvnet/jaxb2/maven2/tests/catalog/RunPlainCatalogMojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.catalog; 2 | 3 | import java.io.File; 4 | 5 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 6 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 7 | 8 | public class RunPlainCatalogMojo extends RunXJC2Mojo { 9 | 10 | @Override 11 | protected void configureMojo(AbstractXJCMojo mojo) { 12 | super.configureMojo(mojo); 13 | 14 | mojo 15 | .setCatalog(new File(getBaseDir(), 16 | "src/main/resources/catalog.cat")); 17 | 18 | mojo.setForceRegenerate(true); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /samples/jaxbplugins/src/main/assembly/maven-src.xml: -------------------------------------------------------------------------------- 1 | 2 | maven-src 3 | 4 | zip 5 | 6 | 7 | 8 | 9 | README* 10 | LICENSE* 11 | NOTICE* 12 | 13 | 14 | 15 | src 16 | 17 | 18 | 19 | 20 | ${basedir}/project-pom.xml 21 | pom.xml 22 | true 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/catalog-xml/src/test/java/org/jvnet/jaxb2/maven2/tests/catalog/RunPlainCatalogMojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.catalog; 2 | 3 | import java.io.File; 4 | 5 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 6 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 7 | 8 | public class RunPlainCatalogMojo extends RunXJC2Mojo { 9 | 10 | @Override 11 | protected void configureMojo(AbstractXJCMojo mojo) { 12 | super.configureMojo(mojo); 13 | 14 | mojo 15 | .setCatalog(new File(getBaseDir(), 16 | "src/main/resources/catalog.cat")); 17 | 18 | mojo.setForceRegenerate(true); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /tests/gh-issue-23/one-non-strict/src/main/resources/one/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/gh-issue-23/two-non-strict/src/main/resources/one/a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /plugin-core/src/test/java/org/jvnet/jaxb2/maven2/tests/AddIfExistsToEpisodeSchemaBindingsTest.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests; 2 | 3 | import java.io.InputStream; 4 | 5 | import org.codehaus.plexus.util.IOUtil; 6 | import org.junit.Assert; 7 | import org.junit.Test; 8 | import org.jvnet.jaxb2.maven2.RawXJC2Mojo; 9 | 10 | public class AddIfExistsToEpisodeSchemaBindingsTest { 11 | 12 | @Test 13 | public void transformationResourceIsAccessible() { 14 | InputStream is = RawXJC2Mojo.class 15 | .getResourceAsStream(RawXJC2Mojo.ADD_IF_EXISTS_TO_EPISODE_SCHEMA_BINDINGS_TRANSFORMATION_RESOURCE_NAME); 16 | Assert.assertNotNull(is); 17 | IOUtil.close(is); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/tse/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-53/b/src/test/java/org/jvnet/jaxb2/maven2/tests/MAVEN_JAXB2_PLUGIN_53/b/RunMAVEN_JAXB2_PLUGIN_53Mojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.MAVEN_JAXB2_PLUGIN_53.b; 2 | 3 | import java.io.File; 4 | 5 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 6 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 7 | 8 | public class RunMAVEN_JAXB2_PLUGIN_53Mojo extends RunXJC2Mojo { 9 | 10 | @Override 11 | protected void configureMojo(AbstractXJCMojo mojo) { 12 | super.configureMojo(mojo); 13 | mojo.setCatalog(new File(getBaseDir(), "src/main/resources/catalog.cat")); 14 | mojo.setUseDependenciesAsEpisodes(true); 15 | 16 | mojo.setForceRegenerate(true); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /tests/java-9/src/test/java/org/jvnet/jaxb2/maven2/java9/Java9Test.java: -------------------------------------------------------------------------------- 1 | //Copyright (c) 2017 by Disy Informationssysteme GmbH 2 | package org.jvnet.jaxb2.maven2.java9; 3 | 4 | import static org.junit.Assert.assertNotNull; 5 | 6 | import org.junit.Test; 7 | 8 | // NOT_PUBLISHED 9 | public class Java9Test { 10 | 11 | @Test 12 | public void packageBindingRespected() throws Exception { 13 | Object o = Class.forName("with_pack.SimpleClassWithPackage").newInstance(); 14 | assertNotNull(o); 15 | } 16 | 17 | @Test 18 | public void classNameBindingRespected() throws Exception { 19 | Object o = Class.forName("class_name.SimpleClassWithRightName").newInstance(); 20 | assertNotNull(o); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /tests/wsdl/src/test/java/net/webservicex/test/JAXBContextTest.java: -------------------------------------------------------------------------------- 1 | package net.webservicex.test; 2 | 3 | import javax.xml.bind.JAXBContext; 4 | import javax.xml.bind.JAXBException; 5 | 6 | import org.junit.Test; 7 | 8 | import junit.framework.Assert; 9 | import net.webservicex.GetWeather; 10 | 11 | public class JAXBContextTest { 12 | 13 | public static final String CONTEXT_PATH = GetWeather.class.getPackage().getName(); 14 | 15 | @Test 16 | public void successfullyCreatesMarshallerAndUnmarshaller() throws JAXBException { 17 | final JAXBContext context = JAXBContext.newInstance(CONTEXT_PATH); 18 | Assert.assertNotNull(context.createMarshaller()); 19 | Assert.assertNotNull(context.createUnmarshaller()); 20 | 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-69/src/main/resources/simple.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/wsdl-file/src/test/java/net/webservicex/test/JAXBContextTest.java: -------------------------------------------------------------------------------- 1 | package net.webservicex.test; 2 | 3 | import javax.xml.bind.JAXBContext; 4 | import javax.xml.bind.JAXBException; 5 | 6 | import org.junit.Test; 7 | 8 | import junit.framework.Assert; 9 | import net.webservicex.GetWeather; 10 | 11 | public class JAXBContextTest { 12 | 13 | public static final String CONTEXT_PATH = GetWeather.class.getPackage().getName(); 14 | 15 | @Test 16 | public void successfullyCreatesMarshallerAndUnmarshaller() throws JAXBException { 17 | final JAXBContext context = JAXBContext.newInstance(CONTEXT_PATH); 18 | Assert.assertNotNull(context.createMarshaller()); 19 | Assert.assertNotNull(context.createUnmarshaller()); 20 | 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /tests/catalog/src/test/java/org/jvnet/jaxb2/maven2/tests/catalog/RunCatalogMojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.catalog; 2 | 3 | import java.io.File; 4 | 5 | import org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver; 6 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 7 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 8 | 9 | public class RunCatalogMojo extends RunXJC2Mojo { 10 | 11 | @Override 12 | protected void configureMojo(AbstractXJCMojo mojo) { 13 | super.configureMojo(mojo); 14 | 15 | mojo 16 | .setCatalog(new File(getBaseDir(), 17 | "src/main/resources/catalog.cat")); 18 | mojo.setCatalogResolver(ClasspathCatalogResolver.class.getName()); 19 | 20 | mojo.setForceRegenerate(true); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /tests/gh-issue-19/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.12.1-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-gh-issue-19 11 | pom 12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #19] 13 | 14 | a 15 | b 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/gh-issue-22/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-gh-issue-22 11 | pom 12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #22] 13 | 14 | a 15 | b 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/rnc/src/test/java/org/jvnet/jaxb2/maven2/tests/rnc/DatatypeLibraryLoaderTest.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.rnc; 2 | 3 | import org.junit.Test; 4 | import org.kohsuke.rngom.dt.builtin.BuiltinDatatypeLibraryFactory; 5 | import org.relaxng.datatype.DatatypeLibraryFactory; 6 | import org.relaxng.datatype.helpers.DatatypeLibraryLoader; 7 | 8 | public class DatatypeLibraryLoaderTest { 9 | 10 | @Test 11 | public void testDatatypeLibrary() 12 | { 13 | final DatatypeLibraryFactory b = new BuiltinDatatypeLibraryFactory(new DatatypeLibraryLoader()); 14 | b.createDatatypeLibrary(""); 15 | b.createDatatypeLibrary("http://www.w3.org/2001/XMLSchema-datatypes"); 16 | b.createDatatypeLibrary("http://www.w3.org/2001/XMLSchema-datatypes"); 17 | 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/catalog-xml/src/test/java/org/jvnet/jaxb2/maven2/tests/catalog/RunCatalogMojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.catalog; 2 | 3 | import java.io.File; 4 | 5 | import org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver; 6 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 7 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 8 | 9 | public class RunCatalogMojo extends RunXJC2Mojo { 10 | 11 | @Override 12 | protected void configureMojo(AbstractXJCMojo mojo) { 13 | super.configureMojo(mojo); 14 | 15 | mojo 16 | .setCatalog(new File(getBaseDir(), 17 | "src/main/resources/catalog.cat")); 18 | mojo.setCatalogResolver(ClasspathCatalogResolver.class.getName()); 19 | 20 | mojo.setForceRegenerate(true); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /tests/java-9/src/main/resources/SimpleClassWithOtherName.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-53/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-53 11 | pom 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-53] 13 | 14 | a 15 | b 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-79 11 | pom 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-79] 13 | 14 | a 15 | b 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82 11 | pom 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-82] 13 | 14 | a 15 | b 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/gh-issue-23/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-gh-issue-23 11 | pom 12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #23] 13 | 14 | one-non-strict 15 | two-non-strict 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-77/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-77 11 | pom 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-77] 13 | 14 | common-types 15 | 16 | 17 | 18 | test 19 | 20 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-77/common-types/src/main/resources/META-INF/project/schemas/CommonTypes.xsd: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/episodes/a/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/episodes/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-episodes 11 | pom 12 | Maven JAXB 2.x Plugin Tests [episodes] 13 | 14 | a 15 | b 16 | c 17 | d 18 | e 19 | 20 | 21 | test 22 | 23 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/a/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /tests/JAXB-1044/src/test/java/org/jvnet/jaxb2/maven2/tests/JAXB_1044/RunJAXB_1044Mojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.JAXB_1044; 2 | 3 | import java.io.File; 4 | 5 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 6 | import org.jvnet.jaxb2.maven2.ResourceEntry; 7 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 8 | 9 | public class RunJAXB_1044Mojo extends RunXJC2Mojo { 10 | 11 | @Override 12 | protected void configureMojo(AbstractXJCMojo mojo) { 13 | super.configureMojo(mojo); 14 | 15 | final ResourceEntry a_xsd = new ResourceEntry(); 16 | a_xsd.setUrl("http://www.ab.org/a.xsd"); 17 | mojo.setStrict(false); 18 | mojo.setSchemaIncludes(new String[] {}); 19 | mojo.setSchemas(new ResourceEntry[] { a_xsd }); 20 | mojo.setCatalog(new File(getBaseDir(), "src/main/resources/catalog.cat")); 21 | mojo.setForceRegenerate(true); 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-82/a/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82-a 11 | jar 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-82:a] 13 | 14 | 15 | 16 | ${project.groupId} 17 | jaxb2-maven-plugin 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-77/service/src/main/resources/META-INF/project/schemas/Service.xsd: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/rnc/src/test/java/org/jvnet/jaxb2/maven2/tests/rnc/RunRNCMojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.tests.rnc; 2 | 3 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo; 4 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo; 5 | 6 | import com.sun.tools.xjc.reader.Ring; 7 | 8 | 9 | public class RunRNCMojo extends RunXJC2Mojo { 10 | 11 | @Override 12 | protected void configureMojo(AbstractXJCMojo mojo) { 13 | super.configureMojo(mojo); 14 | 15 | // final ResourceEntry a_xsd = new ResourceEntry(); 16 | // a_xsd.setUrl("http://www.ab.org/a.xsd"); 17 | mojo.setStrict(false); 18 | mojo.setSchemaLanguage("RELAXNG_COMPACT"); 19 | mojo.setSchemaIncludes(new String[] { "*.rnc" }); 20 | mojo.setGeneratePackage("foo"); 21 | // mojo.setSchemas(new ResourceEntry[] { a_xsd }); 22 | // mojo.setCatalog(new File(getBaseDir(), 23 | // "src/main/resources/catalog.cat")); 24 | mojo.setForceRegenerate(true); 25 | // Ring.begin(); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /plugin/src/main/java/org/jvnet/mjiip/v_2/XJC2Mojo.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.mjiip.v_2; 2 | 3 | import org.apache.maven.plugins.annotations.LifecyclePhase; 4 | import org.apache.maven.plugins.annotations.Mojo; 5 | import org.apache.maven.plugins.annotations.ResolutionScope; 6 | import org.jvnet.mjiip.v_2_3.XJC23Mojo; 7 | 8 | import com.sun.tools.xjc.Options; 9 | 10 | /** 11 | * JAXB 2.x Mojo. 12 | * 13 | * @author Aleksei Valikov (valikov@gmx.net) 14 | */ 15 | @Mojo(name = "generate", defaultPhase = LifecyclePhase.GENERATE_SOURCES, requiresDependencyResolution = ResolutionScope.COMPILE, requiresDependencyCollection = ResolutionScope.COMPILE, threadSafe = true) 16 | public class XJC2Mojo extends XJC23Mojo { 17 | 18 | private final org.jvnet.jaxb2.maven2.IOptionsFactory optionsFactory = new OptionsFactory(); 19 | 20 | @Override 21 | protected org.jvnet.jaxb2.maven2.IOptionsFactory getOptionsFactory() { 22 | return optionsFactory; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /tests/tse/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-tse 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 2.x Plugin Tests [tse] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb22.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb22-maven-plugin 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/po-2.2/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-po-2.2 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 2.x Plugin Tests [po-2.2] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb22.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb22-maven-plugin 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/po-2.3/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-po-2.3 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 2.x Plugin Tests [po-2.3] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb23-maven-plugin 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/gh-issue-19/a/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests-gh-issue-19 8 | 0.12.1-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-gh-issue-19-a 11 | jar 12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #19:a] 13 | 14 | test 15 | 16 | 17 | ${project.groupId} 18 | jaxb2-maven-plugin 19 | 20 | 21 | a/a.xsd 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/po-3.0/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-po-3.0 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 3.x Plugin Tests [po-3.0] 13 | 14 | 15 | jakarta.xml.bind 16 | jakarta.xml.bind-api 17 | ${jaxb30.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb30-maven-plugin 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /samples/episode/a/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /tests/gh-issue-22/a/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests-gh-issue-22 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-gh-issue-22-a 11 | jar 12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #22:a] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | test 22 | 23 | 24 | ${project.groupId} 25 | jaxb2-maven-plugin 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/episodes/a/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests-episodes 9 | 0.16.0-SNAPSHOT 10 | 11 | 12 | jaxb-maven-plugin-tests-episodes-a 13 | jar 14 | Maven JAXB 2.x Plugin Tests [episodes:a] 15 | 16 | 17 | 18 | javax.xml.bind 19 | jaxb-api 20 | ${jaxb2-api.version} 21 | 22 | 23 | 24 | 25 | test 26 | 27 | 28 | ${project.groupId} 29 | jaxb22-maven-plugin 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/po-scd/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-po-scd 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 2.x Plugin Tests [po-scd] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb2-maven-plugin 25 | 26 | true 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/java-9/src/main/resources/SimpleClassWithPackage.xsd: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-53/a/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-53 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-53-a 11 | jar 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-53:a] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | test 22 | 23 | 24 | ${project.groupId} 25 | jaxb22-maven-plugin 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/a/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-79 8 | 0.16.0-SNAPSHOT 9 | 10 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-79-a 11 | jar 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-79:a] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | test 22 | 23 | 24 | ${project.groupId} 25 | jaxb2-maven-plugin 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/episodes/d/src/main/resources/d.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/episodes/e/src/main/resources/d.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-87/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-87 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-87] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb2-maven-plugin 25 | 26 | es 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/gh-issue-58/pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | jaxb-maven-plugin-tests-gh-issue-58 6 | 7 | com.evolvedbinary.maven.jvnet 8 | jaxb-maven-plugin-tests 9 | 0.16.0-SNAPSHOT 10 | 11 | jar 12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #58] 13 | 14 | 15 | javax.xml.bind 16 | jaxb-api 17 | ${jaxb2-api.version} 18 | 19 | 20 | 21 | 22 | 23 | ${project.groupId} 24 | jaxb2-maven-plugin 25 | 26 | true 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/issues/src/main/resources/schema.xsd: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/util/StringUtils.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.util; 2 | 3 | import javax.annotation.Nonnull; 4 | 5 | public final class StringUtils 6 | { 7 | /** 8 | * Checks if a (trimmed) String is null or empty. 9 | * 10 | * @param string 11 | * the String to check 12 | * @return true if the string is null, or length 13 | * zero once trimmed. 14 | */ 15 | public static boolean isEmptyTrimmed (final String string) 16 | { 17 | return string == null || string.trim ().length () == 0; 18 | } 19 | 20 | @Nonnull 21 | public static String escapeSpace (@Nonnull final String url) 22 | { 23 | // URLEncoder doesn't work. 24 | final StringBuilder buf = new StringBuilder (url.length () * 3); 25 | for (final char c : url.toCharArray ()) 26 | { 27 | // TODO: not sure if this is the only character that needs to be 28 | // escaped. 29 | if (c == ' ') 30 | buf.append ("%20"); 31 | else 32 | buf.append (c); 33 | } 34 | return buf.toString (); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | build: 11 | name: Build and Test 12 | strategy: 13 | fail-fast: false 14 | matrix: 15 | os: [ubuntu-latest, macos-latest, windows-latest] 16 | java: [8, 11, 17, 21] 17 | runs-on: ${{ matrix.os }} 18 | steps: 19 | - uses: actions/checkout@v4 20 | - name: Set up JDK 21 | uses: actions/setup-java@v4 22 | with: 23 | distribution: liberica 24 | java-version: ${{ matrix.java }} 25 | cache: maven 26 | - name: "Maven Build (Java: ${{ matrix.java }})" 27 | run: mvn -V -B -DskipTests=true "-Dmaven.javadoc.skip=true" install 28 | - name: "Maven Test (Java: ${{ matrix.java }})" 29 | if: ${{ matrix.java == '8' || matrix.java == '11' }} 30 | run: mvn -V -B verify -Ptests 31 | - name: "Maven Test (Java: ${{ matrix.java }})" 32 | if: ${{ matrix.java == '17' || matrix.java == '21' }} 33 | env: 34 | MAVEN_OPTS: "--add-opens=java.base/java.lang=ALL-UNNAMED" 35 | run: mvn -V -B verify -Ptests 36 | -------------------------------------------------------------------------------- /plugin-core/src/test/java/org/jvnet/jaxb2/maven2/util/tests/CollectionsUtilsTests.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.util.tests; 2 | 3 | import static org.junit.Assert.assertEquals; 4 | 5 | import java.util.Arrays; 6 | import java.util.Comparator; 7 | import java.util.function.Function; 8 | 9 | import org.junit.Test; 10 | import org.jvnet.jaxb2.maven2.util.CollectionUtils; 11 | 12 | public class CollectionsUtilsTests 13 | { 14 | @Test 15 | public void correctlyCompares () 16 | { 17 | final Function identity = Function.identity (); 18 | final Comparator gt = CollectionUtils. gtWithNullAsGreatest (); 19 | final Comparator lt = CollectionUtils. ltWithNullAsSmallest (); 20 | assertEquals ("b", CollectionUtils.bestValue (Arrays. asList ("a", "b"), identity, gt)); 21 | assertEquals ("a", CollectionUtils.bestValue (Arrays. asList ("a", "b"), identity, lt)); 22 | assertEquals (null, CollectionUtils.bestValue (Arrays. asList ("a", null, "b"), identity, gt)); 23 | assertEquals (null, CollectionUtils.bestValue (Arrays. asList ("a", null, "b"), identity, lt)); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/episodes/b/src/main/resources/b.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tests/episodes/c/src/main/resources/c.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /tests/gh-issue-22/a/src/main/resources/a.xsd: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /samples/episode/a/project-pom.xml: -------------------------------------------------------------------------------- 1 | 4 | 4.0.0 5 | 6 | com.evolvedbinary.maven.jvnet 7 | jaxb-maven-plugin-sample-episode-maven 8 | ${project.version} 9 | 10 | jaxb-maven-plugin-sample-episode-a-maven 11 | jar 12 | Maven JAXB 2.x Plugin Sample [episode-a|maven] 13 | 14 | 15 | org.glassfish.jaxb 16 | jaxb-runtime 17 | 18 | 19 | 20 | test 21 | 22 | 23 | ${project.groupId} 24 | jaxb2-maven-plugin 25 | 26 | 27 | 28 | generate 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /samples/episode/b/src/main/resources/b.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /samples/episode/c/src/main/resources/c.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /plugin-core/src/main/java/org/jvnet/jaxb2/maven2/net/AbstractSchemeAwareURILastModifiedResolver.java: -------------------------------------------------------------------------------- 1 | package org.jvnet.jaxb2.maven2.net; 2 | 3 | import java.net.URI; 4 | import java.text.MessageFormat; 5 | 6 | import org.apache.commons.lang3.Validate; 7 | import org.apache.maven.plugin.logging.Log; 8 | 9 | public abstract class AbstractSchemeAwareURILastModifiedResolver implements 10 | SchemeAwareURILastModifiedResolver { 11 | 12 | private final Log logger; 13 | private final String scheme; 14 | 15 | public AbstractSchemeAwareURILastModifiedResolver(String scheme, Log logger) { 16 | this.scheme = Validate.notNull(scheme); 17 | this.logger = Validate.notNull(logger); 18 | } 19 | 20 | @Override 21 | public String getScheme() { 22 | return scheme; 23 | } 24 | 25 | protected Log getLogger() { 26 | return logger; 27 | } 28 | 29 | @Override 30 | public Long getLastModified(URI uri) { 31 | final String scheme = getScheme(); 32 | Validate.isTrue(scheme.equalsIgnoreCase(uri.getScheme()), MessageFormat 33 | .format("Invalid scheme [{0}] expected [{1}].", 34 | uri.getScheme(), scheme)); 35 | return getLastModifiedForScheme(uri); 36 | } 37 | 38 | protected abstract Long getLastModifiedForScheme(URI uri); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /tests/MAVEN_JAXB2_PLUGIN-79/b/src/main/resources/b.xsd: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /www/project_tools.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 25 |