Skip to content

Commit

Permalink
[DROOLS-3392] workaround lack of xjc executable in JDK11 (apache#2172)
Browse files Browse the repository at this point in the history
* [DROOLS-3392] workaround lack of xjc executable in JDK11

* [DROOLS-3392] workaround lack of xjc executable in JDK11
  • Loading branch information
mariofusco committed Dec 3, 2018
1 parent 89f114e commit 1a8b571
Showing 1 changed file with 62 additions and 1 deletion.
63 changes: 62 additions & 1 deletion kie-pmml/pom.xml
Expand Up @@ -157,6 +157,64 @@
once we are sure it works on both JDK8 and JDK9.
Using xjc directly (instead of jaxb2-maven-plugin) to support both JDK8 and JDK9 with single configuration.
See https://issues.jboss.org/browse/DROOLS-1170 for more info. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.1</version>
<executions>
<execution>
<id>copy</id>
<phase>generate-sources</phase>
<goals>
<goal>copy</goal>
</goals>
</execution>
</executions>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.sun.activation</groupId>
<artifactId>javax.activation</artifactId>
<version>1.2.0</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.3.1</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.1</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>com.sun.istack</groupId>
<artifactId>istack-commons-runtime</artifactId>
<version>3.0.7</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.basedir}/target/lib</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
Expand All @@ -170,8 +228,11 @@
</execution>
</executions>
<configuration>
<executable>${env.JAVA_HOME}/bin/xjc</executable>
<executable>${env.JAVA_HOME}/bin/java</executable>
<arguments>
<argument>-cp</argument>
<argument>${project.basedir}/target/lib/*</argument>
<argument>com.sun.tools.xjc.XJCFacade</argument>
<argument>-enableIntrospection</argument>
<argument>-p</argument>
<argument>org.dmg.pmml.pmml_4_2.descr</argument>
Expand Down

0 comments on commit 1a8b571

Please sign in to comment.