Skip to content

Commit

Permalink
Replaced jaxb xsd generation with cxf (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy authored Apr 1, 2018
1 parent df2c967 commit 5882fd5
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 15 deletions.
40 changes: 25 additions & 15 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,37 @@
</goals>
<configuration>
<sources>
<source>target/jaxb-sources</source>
<source>target/xmlbeans-sources</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-xjc-plugin</artifactId>
<configuration>
<extensions>
<extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:${cxf-xjc-plugin.version}</extension>
</extensions>
</configuration>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>xsdtojava-tests</goal>
</goals>
<configuration>
<xsdOptions>
<xsdOption>
<xsd>src/test/xsd/jaxb/Employee.xsd</xsd>
</xsdOption>
</xsdOptions>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
Expand All @@ -276,20 +300,6 @@
</transformSchemas>
</configuration>
</execution>
<execution>
<id>xjc</id>
<phase>generate-test-sources</phase>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<schemaDirectory>
${project.basedir}/src/test/xsd/jaxb
</schemaDirectory>
<packageName>org.dozer.vo.jaxb.employee</packageName>
<outputDirectory>target/jaxb-sources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
10 changes: 10 additions & 0 deletions plugins-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
<maven-surefire-report-plugin.version>2.20</maven-surefire-report-plugin.version>

<!-- Apache Plugins; alphabetical order -->
<cxf-xjc-plugin.version>3.2.1</cxf-xjc-plugin.version>

<!-- Codehaus Plugins versions; alphabetical order -->
<build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version>
<exec-maven-plugin.version>1.6.0</exec-maven-plugin.version>
Expand Down Expand Up @@ -183,6 +186,13 @@
<version>${maven-surefire-report-plugin.version}</version>
</plugin>

<!-- Apache Plugins; alphabetical order -->
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-xjc-plugin</artifactId>
<version>${cxf-xjc-plugin.version}</version>
</plugin>

<!-- Codehaus Plugins; alphabetical order -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down

0 comments on commit 5882fd5

Please sign in to comment.