Skip to content

Commit 48a0a1f

Browse files
[#437] upgrade to jaxb-ri 2.3.9 (add test project for javadoc)
1 parent 4dc98bd commit 48a0a1f

File tree

7 files changed

+63
-3
lines changed

7 files changed

+63
-3
lines changed

jaxb-annotate-parent/tests/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<module>annotations</module>
4646
<module>annox</module>
4747
<module>annotate</module>
48+
<module>base-dependent</module>
4849
<module>issues</module>
4950
<module>one</module>
5051
</modules>

maven-plugin/plugin-core/src/main/java/org/jvnet/jaxb/maven/AbstractXJC2Mojo.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -939,9 +939,13 @@ public void setEpisode(boolean episode) {
939939
* (via <code>scd="x-schema::..."</code>) in the generated episode files.
940940
* This is necessary to avoid the annoying `SCD "x-schema::tns" didn't
941941
* match any schema component` errors.
942+
*
943+
* @deprecated since 2.0.10 - this is kept for retro-compatibility but will be removed since
944+
* original bug has been resolved in 2.3.9 JAXB-RI
942945
*/
943-
@Parameter(property = "maven.xjc2.addIfExistsToEpisodeSchemaBindings", defaultValue = "true")
944-
private boolean addIfExistsToEpisodeSchemaBindings = true;
946+
@Deprecated
947+
@Parameter(property = "maven.xjc2.addIfExistsToEpisodeSchemaBindings", defaultValue = "false")
948+
private boolean addIfExistsToEpisodeSchemaBindings = false;
945949

946950
public boolean isAddIfExistsToEpisodeSchemaBindings() {
947951
return this.addIfExistsToEpisodeSchemaBindings;

maven-plugin/tests/javadoc/pom.xml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<artifactId>jaxb-maven-plugin-tests-javadoc</artifactId>
4+
<parent>
5+
<groupId>org.jvnet.jaxb</groupId>
6+
<artifactId>jaxb-maven-plugin-tests</artifactId>
7+
<version>2.0.10-SNAPSHOT</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
10+
<packaging>jar</packaging>
11+
<name>JAXB Tools :: Maven Plugin :: Test [javadoc]</name>
12+
<dependencies>
13+
<dependency>
14+
<groupId>jakarta.xml.bind</groupId>
15+
<artifactId>jakarta.xml.bind-api</artifactId>
16+
</dependency>
17+
<dependency>
18+
<groupId>org.glassfish.jaxb</groupId>
19+
<artifactId>jaxb-runtime</artifactId>
20+
</dependency>
21+
</dependencies>
22+
<build>
23+
<plugins>
24+
<plugin>
25+
<groupId>org.jvnet.jaxb</groupId>
26+
<artifactId>jaxb-maven-plugin</artifactId>
27+
</plugin>
28+
</plugins>
29+
</build>
30+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb">
3+
<xs:element name="Lison" type="Lison"/>
4+
<xs:complexType name="Lison">
5+
<xs:annotation>
6+
<xs:documentation>My awesome complex type comment.</xs:documentation>
7+
</xs:annotation>
8+
<xs:sequence>
9+
<xs:element name="Truck" type="xs:string" minOccurs="1" maxOccurs="1">
10+
<xs:annotation>
11+
<xs:documentation>My awesome element comment.</xs:documentation>
12+
</xs:annotation>
13+
</xs:element>
14+
</xs:sequence>
15+
</xs:complexType>
16+
</xs:schema>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

maven-plugin/tests/pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<module>catalog-xml</module>
3232
<module>episodes</module>
3333
<module>issues</module>
34+
<module>javadoc</module>
3435
<module>p_o</module>
3536
<module>po-2.3</module>
3637
<module>po-scd</module>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<ant.version>1.10.12</ant.version>
6767
<dtd-parser.version>1.4.5</dtd-parser.version>
6868
<!-- jakarta.activation.version>1.2.2</jakarta.activation.version -->
69-
<jaxb.version>2.3.8</jaxb.version>
69+
<jaxb.version>2.3.9</jaxb.version>
7070
<istack.version>3.0.12</istack.version>
7171

7272
<commons-beanutils.version>1.9.4</commons-beanutils.version>

0 commit comments

Comments
 (0)