Skip to content

Commit ee5cbd5

Browse files
Configure nice namespaces
1 parent 298d63f commit ee5cbd5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package-info.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
@jakarta.xml.bind.annotation.XmlSchema(
2-
namespace = "http://www.siri.org.uk/siri",
2+
namespace = "http://www.vdv.de/ojp",
33
elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED,
44
xmlns = {
55
@jakarta.xml.bind.annotation.XmlNs(prefix = "ojp", namespaceURI = "http://www.vdv.de/ojp"),
66
@jakarta.xml.bind.annotation.XmlNs(prefix = "ifopt", namespaceURI = "http://www.ifopt.org.uk/ifopt"),
77
@jakarta.xml.bind.annotation.XmlNs(prefix = "acsb", namespaceURI = "http://www.ifopt.org.uk/acsb"),
8-
@jakarta.xml.bind.annotation.XmlNs(prefix = "siri", namespaceURI = "http://www.siri.org.uk/siri")
8+
@jakarta.xml.bind.annotation.XmlNs(prefix = "siri", namespaceURI = "http://www.siri.org.uk/siri"),
9+
@jakarta.xml.bind.annotation.XmlNs(prefix = "netex", namespaceURI = "http://www.netex.org.uk/netex"),
10+
@jakarta.xml.bind.annotation.XmlNs(prefix = "opengis", namespaceURI = "http://www.opengis.net/gml/3.2"),
911
}
1012
)
11-
package de.vdv.ojp.model;
13+
package de.vdv.ojp20.model;
1214

1315
import jakarta.xml.bind.annotation.XmlNs;
1416
import jakarta.xml.bind.annotation.XmlNsForm;

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<modelVersion>4.0.0</modelVersion>
1919
<groupId>de.vdv</groupId>
2020
<artifactId>ojp-java-model</artifactId>
21-
<version>2.0.1</version>
21+
<version>2.0.0-SNAPSHOT</version>
2222

2323
<name>ojp-java-model</name>
2424
<description>Generates Java model from OJP xsds using jaxb.</description>
@@ -337,7 +337,7 @@
337337
<configuration>
338338
<target>
339339
<copy file="${project.basedir}/package-info.java"
340-
todir="${project.build.directory}/generated-sources/xjc/de/vdv/ojp/model" overwrite="true"/>
340+
todir="${project.build.directory}/generated-sources/xjc/de/vdv/ojp20/model" overwrite="true"/>
341341
</target>
342342
</configuration>
343343
</execution>

0 commit comments

Comments
 (0)