diff --git a/maven-plugin/tests/jt-250/pom.xml b/maven-plugin/tests/jt-250/pom.xml new file mode 100644 index 000000000..de80eb0bd --- /dev/null +++ b/maven-plugin/tests/jt-250/pom.xml @@ -0,0 +1,75 @@ + + + 4.0.0 + jaxb-maven-plugin-tests-250 + + org.jvnet.jaxb + jaxb-maven-plugin-tests + 2.0.4-SNAPSHOT + + JAXB Tools :: Maven Plugin :: Test [JAXB-TOOLS 250] + + This project tests schema location set in 'configuration' tag and avoid regression causing "No schemas to compile. Skipping XJC execution." + + + + org.glassfish.jaxb + jaxb-runtime + + + + + 8 + 8 + UTF-8 + + + + + org.jvnet.jaxb + jaxb-maven-plugin + + + v1 + generate-sources + + generate + + + src/xsd/v1 + ${project.build.directory}/generated-sources/v1 + org.examples.xsd.v1 + + + + v2 + generate-sources + + generate + + + src/xsd/v2 + ${project.build.directory}/generated-sources/v2 + org.examples.xsd.v2 + + + + + true + + + org.jvnet.jaxb2_commons + jaxb2-basics + ${jaxb2-basics.version} + + + + + + + + + + \ No newline at end of file diff --git a/maven-plugin/tests/jt-250/src/main/java/org/example/testxjc/Main.java b/maven-plugin/tests/jt-250/src/main/java/org/example/testxjc/Main.java new file mode 100644 index 000000000..ee3f6c36d --- /dev/null +++ b/maven-plugin/tests/jt-250/src/main/java/org/example/testxjc/Main.java @@ -0,0 +1,7 @@ +package org.example.testxjc; + +public class Main { + public static void main(String[] args) { + System.out.println("Hello world!"); + } +} \ No newline at end of file diff --git a/maven-plugin/tests/jt-250/src/xsd/v1/purchaseorder.xsd b/maven-plugin/tests/jt-250/src/xsd/v1/purchaseorder.xsd new file mode 100644 index 000000000..b393dab8b --- /dev/null +++ b/maven-plugin/tests/jt-250/src/xsd/v1/purchaseorder.xsd @@ -0,0 +1,66 @@ + + + + + Purchase order schema for Example.com. + Copyright 2000 Example.com. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/maven-plugin/tests/jt-250/src/xsd/v2/purchaseorder.xsd b/maven-plugin/tests/jt-250/src/xsd/v2/purchaseorder.xsd new file mode 100644 index 000000000..b640d6099 --- /dev/null +++ b/maven-plugin/tests/jt-250/src/xsd/v2/purchaseorder.xsd @@ -0,0 +1,67 @@ + + + + + Purchase order schema for Example.com. + Copyright 2000 Example.com. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/maven-plugin/tests/pom.xml b/maven-plugin/tests/pom.xml index e453639d3..119ba9288 100644 --- a/maven-plugin/tests/pom.xml +++ b/maven-plugin/tests/pom.xml @@ -52,6 +52,7 @@ gh-issue-23 gh-issue-58 java-9 + jt-250