Skip to content

Commit

Permalink
Added Jakarta bindings file
Browse files Browse the repository at this point in the history
  • Loading branch information
ingleivj committed Oct 8, 2024
1 parent f551d76 commit 0d0c798
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pcom-esb-wsclient-legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>src/main/resources/bindings.xjb</bindingFile>
<bindingFile>src/main/resources/${bindings-file}</bindingFile>
</bindingFiles>
<extraargs>
<!-- <extraarg>-verbose</extraarg>-->
Expand Down
23 changes: 23 additions & 0 deletions pcom-esb-wsclient-legacy/src/main/resources/bindings-jakarta.xjb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings version="3.0"
xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<!-- "indexed": use Array instead of List -->

<jaxb:globalBindings collectionType="indexed" generateElementProperty="false">
<!-- use Calendar instead of XMLGregorianCalendar -->
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDateTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printDateTime"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:date"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDate"
printMethod="jakarta.xml.bind.DatatypeConverter.printDate"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:time"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printTime"/>

</jaxb:globalBindings>
</jaxb:bindings>
2 changes: 1 addition & 1 deletion pen-esb-wsclient-legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>src/main/resources/bindings.xjb</bindingFile>
<bindingFile>src/main/resources/${bindings-file}</bindingFile>
</bindingFiles>
<extraargs>
<!-- <extraarg>-verbose</extraarg>-->
Expand Down
23 changes: 23 additions & 0 deletions pen-esb-wsclient-legacy/src/main/resources/bindings-jakarta.xjb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings version="3.0"
xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<!-- "indexed": use Array instead of List -->

<jaxb:globalBindings collectionType="indexed" generateElementProperty="false">
<!-- use Calendar instead of XMLGregorianCalendar -->
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDateTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printDateTime"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:date"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDate"
printMethod="jakarta.xml.bind.DatatypeConverter.printDate"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:time"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printTime"/>

</jaxb:globalBindings>
</jaxb:bindings>
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<classifier>javax</classifier>
<cxf-codegen-plugin.version>3.5.4</cxf-codegen-plugin.version>
<cxf-xjc-boolean.version>3.2.0</cxf-xjc-boolean.version>
<bindings-file>bindings.xjb</bindings-file>
<jaxb-maven-plugin.version>2.0.12</jaxb-maven-plugin.version>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -187,7 +188,8 @@
<properties>
<classifier>jakarta</classifier>
<cxf-codegen-plugin.version>4.0.3</cxf-codegen-plugin.version>
<cxf-xjc-boolean.version>4.0.0</cxf-xjc-boolean.version>
<cxf-xjc-boolean.version>4.0.2</cxf-xjc-boolean.version>
<bindings-file>bindings-jakarta.xjb</bindings-file>
<jaxb-maven-plugin.version>3.0.1</jaxb-maven-plugin.version>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion psak-esb-wsclient-legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>src/main/resources/bindings.xjb</bindingFile>
<bindingFile>src/main/resources/${bindings-file}</bindingFile>
</bindingFiles>
<extraargs>
<!-- <extraarg>-verbose</extraarg>-->
Expand Down
23 changes: 23 additions & 0 deletions psak-esb-wsclient-legacy/src/main/resources/bindings-jakarta.xjb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings version="3.0"
xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<!-- "indexed": use Array instead of List -->

<jaxb:globalBindings collectionType="indexed" generateElementProperty="false">
<!-- use Calendar instead of XMLGregorianCalendar -->
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDateTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printDateTime"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:date"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDate"
printMethod="jakarta.xml.bind.DatatypeConverter.printDate"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:time"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printTime"/>

</jaxb:globalBindings>
</jaxb:bindings>
2 changes: 1 addition & 1 deletion pselv-esb-wsclient-legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<configuration>
<defaultOptions>
<bindingFiles>
<bindingFile>src/main/resources/bindings.xjb</bindingFile>
<bindingFile>src/main/resources/${bindings-file}</bindingFile>
</bindingFiles>
<extraargs>
<!-- <extraarg>-verbose</extraarg>-->
Expand Down
23 changes: 23 additions & 0 deletions pselv-esb-wsclient-legacy/src/main/resources/bindings-jakarta.xjb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings version="3.0"
xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<!-- "indexed": use Array instead of List -->

<jaxb:globalBindings collectionType="indexed" generateElementProperty="false">
<!-- use Calendar instead of XMLGregorianCalendar -->
<jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDateTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printDateTime"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:date"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseDate"
printMethod="jakarta.xml.bind.DatatypeConverter.printDate"/>

<jaxb:javaType name="java.util.Calendar" xmlType="xs:time"
parseMethod="jakarta.xml.bind.DatatypeConverter.parseTime"
printMethod="jakarta.xml.bind.DatatypeConverter.printTime"/>

</jaxb:globalBindings>
</jaxb:bindings>

0 comments on commit 0d0c798

Please sign in to comment.