Repository: incubator-taverna-osgi
Updated Branches:
  refs/heads/master 8f3d046b4 -> 2fbfdd4ec


Use cxf instead of jaxb for xsd to java


Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/commit/2fbfdd4e
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/tree/2fbfdd4e
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/diff/2fbfdd4e

Branch: refs/heads/master
Commit: 2fbfdd4ec702770a15b4d7e3583926ed0a7831ec
Parents: 8f3d046
Author: Ian Dunlop <[email protected]>
Authored: Wed May 2 13:19:39 2018 +0100
Committer: Ian Dunlop <[email protected]>
Committed: Wed May 2 13:20:33 2018 +0100

----------------------------------------------------------------------
 taverna-osgi-schemas/pom.xml | 59 +++++++++++++++++++++++----------------
 1 file changed, 35 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-osgi/blob/2fbfdd4e/taverna-osgi-schemas/pom.xml
----------------------------------------------------------------------
diff --git a/taverna-osgi-schemas/pom.xml b/taverna-osgi-schemas/pom.xml
index dd73875..e61e53a 100644
--- a/taverna-osgi-schemas/pom.xml
+++ b/taverna-osgi-schemas/pom.xml
@@ -17,28 +17,39 @@
 
 -->
 <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/xsd/maven-4.0.0.xsd";>
-       <modelVersion>4.0.0</modelVersion>
-       <parent>
-               <groupId>org.apache.taverna.osgi</groupId>
-               <artifactId>apache-taverna-osgi</artifactId>
-               <version>0.2.2-incubating-SNAPSHOT</version>
-       </parent>
-       <artifactId>taverna-osgi-schemas</artifactId>
-       <name>Apache Taverna OSGi XML Schemas</name>
-       <packaging>bundle</packaging>
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.jvnet.jaxb2.maven2</groupId>
-                               <artifactId>maven-jaxb2-plugin</artifactId>
-                               <executions>
-                                       <execution>
-                                               <goals>
-                                                       <goal>generate</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
-               </plugins>
-       </build>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.taverna.osgi</groupId>
+    <artifactId>apache-taverna-osgi</artifactId>
+    <version>0.2.2-incubating-SNAPSHOT</version>
+  </parent>
+  <artifactId>taverna-osgi-schemas</artifactId>
+  <name>Apache Taverna OSGi XML Schemas</name>
+  <packaging>bundle</packaging>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.cxf</groupId>
+        <artifactId>cxf-xjc-plugin</artifactId>
+        <version>3.2.1</version>
+        <executions>
+          <execution>
+            <id>generate-sources</id>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>xsdtojava</goal>
+            </goals>
+            <configuration>
+              <xsdOptions>
+                <xsdOption>
+                  <xsdDir>${project.basedir}/src/main/resources</xsdDir>
+                </xsdOption>
+              </xsdOptions>
+              
<sourceRoot>${project.basedir}/target/generated-sources/</sourceRoot>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Reply via email to