Skip to content

Commit

Permalink
[highsource#425] upgrade to jaxb-ri 4.0.4 (add test project for javadoc)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentschoelens authored and Matt Pavlovich committed Feb 5, 2024
1 parent 41c21b7 commit 6731355
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 3 deletions.
1 change: 1 addition & 0 deletions jaxb-annotate-parent/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<module>annotations</module>
<module>annox</module>
<module>annotate</module>
<module>base-dependent</module>
<module>issues</module>
<module>one</module>
</modules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -933,9 +933,13 @@ public void setEpisode(boolean episode) {
* (via <code>scd="x-schema::..."</code>) in the generated episode files.
* This is necessary to avoid the annoying `SCD "x-schema::tns" didn't
* match any schema component` errors.
*
* @deprecated this is kept for retro-compatibility but will be removed since
* original bug has been resolved in 4.0.4 JAXB-RI
*/
@Parameter(property = "maven.xjc2.addIfExistsToEpisodeSchemaBindings", defaultValue = "true")
private boolean addIfExistsToEpisodeSchemaBindings = true;
@Deprecated(since = "4.0.1", forRemoval = true)
@Parameter(property = "maven.xjc2.addIfExistsToEpisodeSchemaBindings", defaultValue = "false")
private boolean addIfExistsToEpisodeSchemaBindings = false;

public boolean isAddIfExistsToEpisodeSchemaBindings() {
return this.addIfExistsToEpisodeSchemaBindings;
Expand Down
30 changes: 30 additions & 0 deletions maven-plugin/tests/javadoc/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<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">
<modelVersion>4.0.0</modelVersion>
<artifactId>jaxb-maven-plugin-tests-javadoc</artifactId>
<parent>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin-tests</artifactId>
<version>4.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<packaging>jar</packaging>
<name>JAXB Tools :: Maven Plugin :: Test [javadoc]</name>
<dependencies>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
16 changes: 16 additions & 0 deletions maven-plugin/tests/javadoc/src/main/resources/schema.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb">
<xs:element name="Lison" type="Lison"/>
<xs:complexType name="Lison">
<xs:annotation>
<xs:documentation>My awesome complex type comment.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Truck" type="xs:string" minOccurs="1" maxOccurs="1">
<xs:annotation>
<xs:documentation>My awesome element comment.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
log4j.rootCategory=DEBUG, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.target=system.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%m%n %c%n%n
log4j.logger.org.apache.commons.digester=INFO
log4j.logger.org.jvnet.hyperjaxb3=DEBUG
log4j.logger.org.hibernate=WARN
1 change: 1 addition & 0 deletions maven-plugin/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<module>catalog-xml</module>
<module>episodes</module>
<module>issues</module>
<module>javadoc</module>
<module>p_o</module>
<module>po-2.3</module>
<module>po-scd</module>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<!-- Dependencies versions -->
<ant.version>1.10.12</ant.version>
<jaxb.version>4.0.2</jaxb.version>
<jaxb.version>4.0.4</jaxb.version>

<commons-beanutils.version>1.9.4</commons-beanutils.version>
<commons-io.version>2.11.0</commons-io.version>
Expand Down

0 comments on commit 6731355

Please sign in to comment.