]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
DRYD-122: Made 'rel' the namespace prefix for the relations-common-list type.
authorremillet <remillet@yahoo.com>
Thu, 9 Nov 2017 21:03:02 +0000 (13:03 -0800)
committerremillet <remillet@yahoo.com>
Thu, 9 Nov 2017 21:03:02 +0000 (13:03 -0800)
pom.xml
services/jaxb/src/main/resources/bindings.xml [new file with mode: 0644]
services/pom.xml

diff --git a/pom.xml b/pom.xml
index b43b46c2a7b5113e11bfe6fcaea590303e990c31..0119afe1f666159462983720ba46423804c1bdcd 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                <enabled>false</enabled>
                        </snapshots>
                </pluginRepository>
+           <pluginRepository>
+               <id>plugins-snapshot-local</id>
+               <name>plugins-snapshot-local</name>
+               <url>http://nightly.collectionspace.org:8081/artifactory/plugins-snapshot-local</url>
+               <snapshots>
+                   <enabled>true</enabled>
+               </snapshots>
+           </pluginRepository>
                <pluginRepository>
                        <id>repo1</id>
                        <name>Maven repo1</name>
diff --git a/services/jaxb/src/main/resources/bindings.xml b/services/jaxb/src/main/resources/bindings.xml
new file mode 100644 (file)
index 0000000..76f7b6a
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<jxb:bindings version="1.0"
+    xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:namespace="http://jaxb2-commons.dev.java.net/namespace-prefix"
+    xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd
+    http://jaxb2-commons.dev.java.net/namespace-prefix https://raw.githubusercontent.com/Siggen/jaxb2-namespace-prefix/master/src/main/resources/prefix-namespace-schema.xsd">
+
+    <jxb:bindings schemaLocation="relations_common.xsd">
+        <jxb:bindings>
+            <namespace:prefix name="rel" />
+            <!-- Additional @XmlNs prefix declarations to take effect for this schema/package -->
+            <namespace:prefix name="xsi" namespaceURI="http://www.w3.org/2001/XMLSchema-instance" />
+        </jxb:bindings>
+    </jxb:bindings>
+    
+</jxb:bindings>
\ No newline at end of file
index 58890af75fb12dd9280647c321e0658a568c1c4b..09bfc6657c37863f40ded4d5165df476364c3cb0 100644 (file)
                                                        </goals>
                                                        <configuration>
                                                                <extension>true</extension>
+                                                               <schemaDirectory>src/main/resources</schemaDirectory>
+                                                               <schemaIncludes>
+                                                                       <include>*.xsd</include>
+                                                               </schemaIncludes>
+                                                               <bindingDirectory>src/main/resources</bindingDirectory>
                                                                <bindingIncludes>
-                                                       <include>xbindings.xjb</include>
+                                                       <include>bindings.xml</include>
                                                </bindingIncludes>
                                                                <args>
+                                                                       <arg>-extension</arg>
+                                                                       <arg>-Xnamespace-prefix</arg>
                                                                        <arg>-Xannotate</arg> 
                                                                        <arg>-verbose</arg> 
                                                                        <!-- <arg>-XtoString</arg> -->
                                                        </configuration>
                                                </execution>
                                        </executions>
+                                       <dependencies>
+                                               <dependency>
+                                                       <groupId>org.jvnet.jaxb2_commons</groupId>
+                                                       <artifactId>jaxb2-namespace-prefix</artifactId> <!-- Used to force a specific namespace prefix specified in src/main/resource/bindings.xml -->
+                                                       <version>1.4-snapshot</version>
+                                               </dependency>
+                                       </dependencies>
                                </plugin>
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>