getArgs() {
18 | return Collections.singletonList("-Xfoo");
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/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/JAXB-1044/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/JAXB-1044/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-JAXB-1044
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-JAXB-1044]
13 |
14 |
15 | javax.xml.bind
16 | jaxb-api
17 | ${jaxb2-api.version}
18 |
19 |
20 | ${project.groupId}
21 | jaxb-maven-plugin-core
22 | test
23 |
24 |
25 | ${project.groupId}
26 | jaxb-maven-plugin-testing
27 | test
28 |
29 |
30 |
31 |
32 |
33 | ${project.groupId}
34 | jaxb2-maven-plugin
35 |
36 |
37 | generate
38 |
39 | generate
40 |
41 |
42 | src/main/resources/catalog.cat
43 |
44 |
45 |
46 | http://www.ab.org/a.xsd
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/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/a.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/JAXB-1044/src/main/resources/b.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/JAXB-1044/src/main/resources/catalog.cat:
--------------------------------------------------------------------------------
1 | REWRITE_SYSTEM "http://www.ab.org" "."
2 |
3 |
--------------------------------------------------------------------------------
/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-49/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-49/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-49
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-49]
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 |
27 | generate
28 |
29 | generate
30 |
31 |
32 | true
33 | src/main/resources/catalog.cat
34 |
35 |
36 | http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-49/src/main/resources/catalog.cat:
--------------------------------------------------------------------------------
1 | REWRITE_SYSTEM "http://schemas.opengis.net" "../schema/ogc"
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-49/src/main/schema/ogc/wms/1.3.0/exceptions_1_3_0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-53/a/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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-53/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 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-53/b/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-53/b/src/main/resources/b.xsd:
--------------------------------------------------------------------------------
1 |
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 |
40 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/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/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/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-69/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-69/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-69
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-69]
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 |
27 | generate
28 |
29 | generate
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-69/src/main/resources/simple.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-70/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-70/src/main/resources/bindings.xjb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-77/common-types/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-77/common-types/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.evolvedbinary.maven.jvnet
6 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-77
7 | 0.16.0-SNAPSHOT
8 |
9 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-77-common-types
10 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-77:common-types]
11 |
12 |
13 | javax.xml.bind
14 | jaxb-api
15 | ${jaxb2-api.version}
16 |
17 |
18 |
19 |
20 |
21 | ${project.groupId}
22 | jaxb2-maven-plugin
23 |
24 | src/main/resources/META-INF/project/schemas
25 | com.company.project.common.types
26 |
27 |
28 |
29 |
30 | generate
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/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/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/service/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/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/MAVEN_JAXB2_PLUGIN-77/service/src/test/java/org/jvnet/jaxb2/maven2/tests/MAVEN_JAXB2_PLUGIN_77/RunMAVEN_JAXB2_PLUGIN_77Mojo.java:
--------------------------------------------------------------------------------
1 | package org.jvnet.jaxb2.maven2.tests.MAVEN_JAXB2_PLUGIN_77;
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_77Mojo extends RunXJC2Mojo {
9 |
10 | @Override
11 | protected void configureMojo(AbstractXJCMojo mojo) {
12 | super.configureMojo(mojo);
13 |
14 | mojo.setSchemaDirectory(new File(getBaseDir(), "src/main/resources/META-INF/project/schemas"));
15 | mojo.setGeneratePackage("com.company.project.service.types");
16 | mojo.setCatalog(new File(getBaseDir(),"src/main/jaxb/catalog.cat"));
17 | mojo.setCatalogResolver("org.jvnet.jaxb2.maven2.resolver.tools.ClasspathCatalogResolver");
18 | mojo.setExtension(true);
19 | // mojo.
20 | //
21 | // final ResourceEntry a_xsd = new ResourceEntry();
22 | // a_xsd.setUrl("http://www.ab.org/a.xsd");
23 | // mojo.setStrict(false);
24 | // mojo.setSchemaIncludes(new String[] {});
25 | // mojo.setSchemas(new ResourceEntry[] { a_xsd });
26 | // mojo.setCatalog(new File(getBaseDir(), "src/main/resources/catalog.cat"));
27 | mojo.setForceRegenerate(true);
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-79/a/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/MAVEN_JAXB2_PLUGIN-79/a/src/main/resources/a.xjb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/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/MAVEN_JAXB2_PLUGIN-79/b/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/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/a/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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-82/a/src/main/resources/a.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-82/b/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-82/b/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-b
11 | jar
12 | Maven JAXB 2.x Plugin Tests [MAVEN_JAXB2_PLUGIN-82:b]
13 |
14 |
15 | ${project.groupId}
16 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82-a
17 | ${project.version}
18 | runtime
19 |
20 |
21 |
22 |
23 |
24 | org.apache.maven.plugins
25 | maven-dependency-plugin
26 |
27 |
28 | analyze
29 |
30 | analyze-only
31 |
32 |
33 |
34 | ${project.groupId}:jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82-a:jar:${project.version}
35 |
36 |
37 |
38 |
39 |
40 |
41 | ${project.groupId}
42 | jaxb2-maven-plugin
43 |
44 | src/main/resources/catalog.cat
45 |
46 |
47 | ${project.groupId}
48 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-82-a
49 | ${project.version}
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-82/b/src/main/resources/b.xjb:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-82/b/src/main/resources/b.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/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/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/MAVEN_JAXB2_PLUGIN-86/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-86/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-MAVEN_JAXB2_PLUGIN-86
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-86]
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 |
27 | a
28 | generate-sources
29 |
30 | generate
31 |
32 |
33 | src/main/resources/a
34 | a
35 |
36 | ${project.build.directory}/generated-sources/xjc-a
37 |
38 |
39 |
40 | b
41 | generate-sources
42 |
43 | generate
44 |
45 |
46 | src/main/resources/b
47 | b
48 |
49 | ${project.build.directory}/generated-sources/xjc-b
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-86/src/main/resources/a/a.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-86/src/main/resources/b/b.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/MAVEN_JAXB2_PLUGIN-87/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/catalog-xml/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/catalog-xml/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-catalog-xml
11 | jar
12 | Maven JAXB 2.x Plugin Tests [catalog-xml]
13 |
14 |
15 | ${project.groupId}
16 | jaxb-maven-plugin-testing
17 | test
18 |
19 |
20 | ${project.groupId}
21 | jaxb-maven-plugin-core
22 | ${project.version}
23 | test
24 |
25 |
26 | javax.xml.bind
27 | jaxb-api
28 |
29 |
30 |
31 |
32 | javax.xml.bind
33 | jaxb-api
34 | ${jaxb2-api.version}
35 |
36 |
37 |
38 | test
39 |
40 |
41 | ${project.groupId}
42 | jaxb2-maven-plugin
43 |
44 |
45 | generate
46 |
47 | generate
48 |
49 |
50 |
51 | schema_b.xsd
52 |
53 | src/main/resources/catalog.xml
54 |
55 |
56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/tests/catalog-xml/src/main/resources/catalog.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/tests/catalog-xml/src/main/resources/schema_a.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/tests/catalog-xml/src/main/resources/schema_b.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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/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/catalog/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/catalog/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-catalog
11 | jar
12 | Maven JAXB 2.x Plugin Tests [catalog]
13 |
14 |
15 | ${project.groupId}
16 | jaxb-maven-plugin-testing
17 | ${project.version}
18 | test
19 |
20 |
21 | ${project.groupId}
22 | jaxb-maven-plugin-core
23 | ${project.version}
24 | test
25 |
26 |
27 | javax.xml.bind
28 | jaxb-api
29 |
30 |
31 |
32 |
33 | javax.xml.bind
34 | jaxb-api
35 | ${jaxb2-api.version}
36 |
37 |
38 |
39 | test
40 |
41 |
42 | ${project.groupId}
43 | jaxb2-maven-plugin
44 | ${project.version}
45 |
46 |
47 | generate
48 |
49 | generate
50 |
51 |
52 |
53 | schema_b.xsd
54 |
55 | src/main/resources/catalog.cat
56 |
57 |
58 |
59 |
60 |
61 |
62 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/tests/catalog/src/main/resources/schema_b.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/tests/episodes/a/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/episodes/a/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | com.evolvedbinary.maven.jvnet
7 | jaxb-maven-plugin-tests-episodes
8 | 0.16.0-SNAPSHOT
9 |
10 | jaxb-maven-plugin-tests-episodes-a
11 | jar
12 | Maven JAXB 2.x Plugin Tests [episodes: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/episodes/a/src/main/resources/a.xjb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/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/b/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/episodes/b/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | com.evolvedbinary.maven.jvnet
7 | jaxb-maven-plugin-tests-episodes
8 | 0.16.0-SNAPSHOT
9 |
10 | jaxb-maven-plugin-tests-episodes-b
11 | jar
12 | Maven JAXB 2.x Plugin Tests [episodes:b]
13 |
14 |
15 | ${project.groupId}
16 | jaxb-maven-plugin-tests-episodes-a
17 | ${project.version}
18 |
19 |
20 | javax.xml.bind
21 | jaxb-api
22 | ${jaxb2-api.version}
23 |
24 |
25 |
26 | test
27 |
28 |
29 | ${project.groupId}
30 | jaxb22-maven-plugin
31 |
32 | true
33 | false
34 |
35 |
36 | ${project.groupId}
37 | jaxb-maven-plugin-tests-episodes-a
38 | ${project.version}
39 |
40 |
41 | src/main/resources/catalog.cat
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/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/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/episodes/c/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/episodes/d/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/episodes/d/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | com.evolvedbinary.maven.jvnet
7 | jaxb-maven-plugin-tests-episodes
8 | 0.16.0-SNAPSHOT
9 |
10 | jaxb-maven-plugin-tests-episodes-d
11 | jar
12 | Maven JAXB 2.x Plugin Tests [episodes:d]
13 |
14 |
15 | javax.xml.bind
16 | jaxb-api
17 | ${jaxb2-api.version}
18 |
19 |
20 | ${project.groupId}
21 | jaxb-maven-plugin-tests-episodes-a
22 | ${project.version}
23 |
24 |
25 |
26 | test
27 |
28 |
29 | ${project.groupId}
30 | jaxb22-maven-plugin
31 |
32 | true
33 | false
34 |
35 |
36 | ${project.groupId}
37 | jaxb-maven-plugin-tests-episodes-a
38 | ${project.version}
39 |
40 |
41 |
47 | src/main/resources/catalog.cat
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/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/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/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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/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/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/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/gh-issue-16/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/gh-issue-16/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-gh-issue-16
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 #16]
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 |
27 | generate
28 |
29 | generate
30 |
31 |
32 |
33 | src/main/resources/ab/catalog.cat
34 |
35 | **/a.xsd
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/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-16/src/main/resources/ab/a.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/tests/gh-issue-16/src/main/resources/ab/b.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/gh-issue-16/src/main/resources/ab/catalog.cat:
--------------------------------------------------------------------------------
1 | REWRITE_SYSTEM "http://www.ab.org" "../ab"
2 |
3 |
--------------------------------------------------------------------------------
/tests/gh-issue-19/a/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/gh-issue-19/a/src/main/resources/a/a.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/gh-issue-19/b/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/gh-issue-19/b/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-b
11 | jar
12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #19:b]
13 |
14 |
15 | ${project.groupId}
16 | jaxb-maven-plugin-tests-gh-issue-19-a
17 | ${project.version}
18 |
19 |
20 | ${project.groupId}
21 | jaxb-maven-plugin-testing
22 | test
23 |
24 |
25 |
26 | test
27 |
28 |
29 | ${project.groupId}
30 | jaxb2-maven-plugin
31 |
32 | true
33 |
34 | b/b.xsd
35 |
36 | src/main/resources/b/b.cat
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/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"
--------------------------------------------------------------------------------
/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/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/a/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/tests/gh-issue-22/b/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/gh-issue-22/b/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-b
11 | jar
12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #22:b]
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 |
30 | ${project.groupId}
31 | jaxb-maven-plugin-tests-gh-issue-22-a
32 | ${project.version}
33 | a.xsd
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/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/gh-issue-23/one-non-strict/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/gh-issue-23/one-non-strict/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 |
6 | com.evolvedbinary.maven.jvnet
7 | jaxb-maven-plugin-tests-gh-issue-23
8 | 0.16.0-SNAPSHOT
9 |
10 | jaxb-maven-plugin-tests-gh-issue-23-one-non-strict
11 | jar
12 | Maven JAXB 2.x Plugin Tests [GitHub Issue #23:one-non-strict]
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 |
27 | generate
28 |
29 | generate
30 |
31 |
32 |
33 |
34 |
35 |
36 | http://www.ab.org/one/a.xsd
37 |
38 | src/main/resources/META-INF/one/catalog.xml
39 | false
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/tests/gh-issue-23/one-non-strict/src/main/resources/META-INF/one/catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/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/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/one-non-strict/src/main/resources/one/b1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/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/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/gh-issue-23/two-non-strict/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/gh-issue-23/two-non-strict/src/main/resources/META-INF/two/catalog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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-23/two-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/two/p.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/tests/gh-issue-58/.gitignore:
--------------------------------------------------------------------------------
1 | .settings
2 | .classpath
3 | .project
4 | /target/
5 |
--------------------------------------------------------------------------------
/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/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/issues/src/main/resources/binding.xjb:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/tests/issues/src/main/resources/depends.dep:
--------------------------------------------------------------------------------
1 | See issue #99.
2 | If this file is changed, compilation will be forced.
--------------------------------------------------------------------------------
/tests/issues/src/main/resources/depends.txt:
--------------------------------------------------------------------------------
1 | See issue #99.
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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
--------------------------------------------------------------------------------
/tests/java-9/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/java-9/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-java-9
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 [Java 9]
13 |
14 |
15 |
16 | ${project.groupId}
17 | jaxb23-maven-plugin
18 |
19 |
20 | generate
21 |
22 | generate
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | javax.xml.bind
32 | jaxb-api
33 | ${jaxb2-api.version}
34 |
35 |
36 | junit
37 | junit
38 | test
39 |
40 |
41 |
--------------------------------------------------------------------------------
/tests/java-9/src/main/resources/SimpleClass.xsd:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/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/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/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/p o/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/p o/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-p_o
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 [p o]
13 |
14 |
15 | org.glassfish.jaxb
16 | jaxb-xjc
17 | ${jaxb2-api.version}
18 | test
19 |
20 |
21 | ${project.groupId}
22 | jaxb-maven-plugin-core
23 | test
24 |
25 |
26 | ${project.groupId}
27 | jaxb-maven-plugin-testing
28 | test
29 |
30 |
31 | javax.xml.bind
32 | jaxb-api
33 | ${jaxb2-api.version}
34 |
35 |
36 |
37 |
38 |
39 | ${project.groupId}
40 | jaxb2-maven-plugin
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/tests/p o/src/main/resources/binding.xjb:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/tests/po-2.2/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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-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
--------------------------------------------------------------------------------
/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/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/po-3.0/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/tests/po-scd/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/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/po-scd/src/main/resources/bindings.xjb:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/res/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/res/src/main/resources/bindings.xjb:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/tests/res/src/main/resources/catalog.cat:
--------------------------------------------------------------------------------
1 | REWRITE_SYSTEM "http://schemas.opengis.net" "../schema/ogc"
--------------------------------------------------------------------------------
/tests/res/src/main/schema/ogc/wms/1.3.0/exceptions_1_3_0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/tests/res/src/test/java/org/jvnet/jaxb2/maven2/tests/res/RunResMojo.java:
--------------------------------------------------------------------------------
1 | package org.jvnet.jaxb2.maven2.tests.res;
2 |
3 | import java.io.File;
4 |
5 | import org.jvnet.jaxb2.maven2.AbstractXJCMojo;
6 | import org.jvnet.jaxb2.maven2.DependencyResource;
7 | import org.jvnet.jaxb2.maven2.ResourceEntry;
8 | import org.jvnet.jaxb2.maven2.test.RunXJC2Mojo;
9 |
10 | public class RunResMojo extends RunXJC2Mojo {
11 |
12 | @Override
13 | protected void configureMojo(AbstractXJCMojo mojo) {
14 | super.configureMojo(mojo);
15 |
16 | mojo.setCatalog(new File(getBaseDir(),"src/main/jaxb/catalog.cat"));
17 | mojo.setExtension(true);
18 | final ResourceEntry purchaseorder_xsd = new ResourceEntry();
19 | final DependencyResource purchaseorder_xsd_dependencyResource = new DependencyResource();
20 | purchaseorder_xsd.setDependencyResource(purchaseorder_xsd_dependencyResource);
21 | purchaseorder_xsd.getDependencyResource().setGroupId("org.jvnet.jaxb2.maven2");
22 | purchaseorder_xsd.getDependencyResource().setArtifactId("maven-jaxb2-plugin-tests-po");
23 | purchaseorder_xsd.getDependencyResource().setResource("purchaseorder.xsd");
24 | mojo.setSchemas(new ResourceEntry[]{
25 | purchaseorder_xsd
26 |
27 | });
28 | // mojo.
29 | //
30 | // final ResourceEntry a_xsd = new ResourceEntry();
31 | // a_xsd.setUrl("http://www.ab.org/a.xsd");
32 | // mojo.setStrict(false);
33 | // mojo.setSchemaIncludes(new String[] {});
34 | // mojo.setSchemas(new ResourceEntry[] { a_xsd });
35 | // mojo.setCatalog(new File(getBaseDir(), "src/main/resources/catalog.cat"));
36 | mojo.setForceRegenerate(true);
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/tests/rnc/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 | /.settings/
3 | /.classpath
4 | /.project
5 |
--------------------------------------------------------------------------------
/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/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 |
--------------------------------------------------------------------------------
/tests/tse/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/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/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/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/tse/src/main/resources/a.xsd:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/tests/tse/src/main/resources/b.xsd:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/tests/two/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
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/two/src/main/resources/schema.xs:
--------------------------------------------------------------------------------
1 | This file must be excluded.
--------------------------------------------------------------------------------
/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/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/wsdl-file/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 |
--------------------------------------------------------------------------------
/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
--------------------------------------------------------------------------------
/tests/wsdl-file/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-wsdl-file
6 |
7 | com.evolvedbinary.maven.jvnet
8 | jaxb-maven-plugin-tests
9 | 0.14.4-SNAPSHOT
10 |
11 | jar
12 | Maven JAXB 2.x Plugin Tests [wsdl-file]
13 |
14 |
15 | org.glassfish.jaxb
16 | jaxb-runtime
17 | ${jaxb.version}
18 |
19 |
20 |
21 | junit
22 | junit
23 | test
24 |
25 |
26 |
27 |
28 |
29 | ${project.groupId}
30 | jaxb2-maven-plugin
31 |
32 |
33 | *.wsdl
34 |
35 | WSDL
36 |
37 |
38 |
39 |
40 |
41 |
42 | jdk11.jaxb-api.2
43 |
44 | [11,)
45 |
46 |
47 |
48 | javax.xml.bind
49 | jaxb-api
50 | ${jaxb2-api.version}
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/tests/wsdl-file/src/main/resources/pedidowebservice.wsdl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/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/wsdl/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | .classpath
3 | .project
4 | .settings
5 |
--------------------------------------------------------------------------------
/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
--------------------------------------------------------------------------------
/tests/wsdl/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-wsdl
6 |
7 | com.evolvedbinary.maven.jvnet
8 | jaxb-maven-plugin-tests
9 | 0.14.4-SNAPSHOT
10 |
11 | jar
12 | Maven JAXB 2.x Plugin Tests [wsdl]
13 |
14 |
15 | org.glassfish.jaxb
16 | jaxb-runtime
17 | ${jaxb.version}
18 |
19 |
20 |
21 | junit
22 | junit
23 | test
24 |
25 |
26 |
27 |
28 |
29 | ${project.groupId}
30 | jaxb2-maven-plugin
31 |
32 |
33 |
34 | http://www.webservicex.net/globalweather.asmx?wsdl
35 |
36 |
37 | WSDL
38 |
39 |
40 |
41 |
42 |
43 |
44 | jdk11.jaxb-api.2
45 |
46 | [11,)
47 |
48 |
49 |
50 | javax.xml.bind
51 | jaxb-api
52 | ${jaxb2-api.version}
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/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/xjc-simple/.gitignore:
--------------------------------------------------------------------------------
1 | /target/
2 |
--------------------------------------------------------------------------------
/tests/xjc-simple/pom.xml:
--------------------------------------------------------------------------------
1 |
4 | 4.0.0
5 | jaxb-maven-plugin-tests-xjc-simple
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 [xjc-simple]
13 |
14 |
15 | javax.xml.bind
16 | jaxb-api
17 | ${jaxb2-api.version}
18 |
19 |
20 | org.jvnet.jaxb2_commons
21 | jaxb2-basics-runtime
22 |
23 |
24 |
25 |
26 |
27 | ${project.groupId}
28 | jaxb2-maven-plugin
29 |
30 |
31 | generate
32 |
33 | generate
34 |
35 |
36 |
37 | -XtoString
38 | -Xequals
39 | -XhashCode
40 | -Xcopyable
41 |
42 |
43 |
44 | org.jvnet.jaxb2_commons
45 | jaxb2-basics
46 | ${jaxb2-basics.version}
47 |
48 |
49 | true
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/tests/xjc-simple/src/main/resources/purchaseorder.xjb:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/www/alm-process/snippets/page.xml:
--------------------------------------------------------------------------------
1 |
2 | index.htmlSubprojects
3 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/www/project_tools.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - Documentation
5 | -
6 |
23 |
24 |
25 |
26 | - Resources
27 | -
28 |
42 |
--------------------------------------------------------------------------------