Use cxf instead of jaxb for xsd to java
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>