Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
profile
junkyard/
.idea
*.iml
*.zip
src/main/resources/xsd/
9 changes: 5 additions & 4 deletions bindings.xjb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<jxb:bindings xmlns:jxb="https://jakarta.ee/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jxb:version="3.0" jxb:extensionBindingPrefixes="xjc">

xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jxb:version="3.0"
jxb:extensionBindingPrefixes="xjc">

<jxb:bindings>
<jxb:globalBindings underscoreBinding="asCharInWord">
<!-- <xjc:javaType name="java.time.LocalDateTime" xmlType="xs:dateTime" adapter="org.rutebanken.util.LocalDateTimeISO8601XmlAdapter" /> -->
Expand All @@ -17,8 +19,7 @@

<jxb:bindings schemaLocation="./src/main/resources/xsd/1.0.3/OJP.xsd">
<jxb:schemaBindings>
<jxb:package name="de.vdv.ojp.model" />
<jxb:package name="de.vdv.ojp.model"/>
</jxb:schemaBindings>
</jxb:bindings>

</jxb:bindings>
15 changes: 15 additions & 0 deletions package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@jakarta.xml.bind.annotation.XmlSchema(
namespace = "http://www.siri.org.uk/siri",
elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED,
xmlns = {
@jakarta.xml.bind.annotation.XmlNs(prefix = "ojp", namespaceURI = "http://www.vdv.de/ojp"),
@jakarta.xml.bind.annotation.XmlNs(prefix = "ifopt", namespaceURI = "http://www.ifopt.org.uk/ifopt"),
@jakarta.xml.bind.annotation.XmlNs(prefix = "acsb", namespaceURI = "http://www.ifopt.org.uk/acsb"),
@jakarta.xml.bind.annotation.XmlNs(prefix = "siri", namespaceURI = "http://www.siri.org.uk/siri")
}
)
package de.vdv.ojp.model;

import jakarta.xml.bind.annotation.XmlNs;
import jakarta.xml.bind.annotation.XmlNsForm;
import jakarta.xml.bind.annotation.XmlSchema;
23 changes: 21 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,26 @@
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>copy-package-info</id>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.basedir}/package-info.java"
todir="${project.build.directory}/generated-sources/xjc/de/vdv/ojp/model" overwrite="true"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down Expand Up @@ -462,7 +481,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down