Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9984

jaxws-retail fails to build with jdk-9

    Details

    • Workaround Description:
      Hide

      The root cause of the failure is org/apache/cxf/tools/wsdlto/WSDLToJava (version 3.2.2)
      is calling the java compiler programmatically and this is failing when using jdk-9.

      Workaround for JDK-9.

      1. Just as org.jboss.ws.cxf:jbossws-cxf-client is required to be added as a
      dependency to the pom file using the jaxws-tools-maven-plugin, now
      gnu.getopt:java-getopt:1.0.13 must be added as well.

      <dependency>
      <groupId>gnu.getopt</groupId>
      <artifactId>java-getopt</artifactId>
      <version>1.0.13</version>
      </dependency>

      2. jaxws-tools-maven-plugin's configuration option "fork" must be set to "true"
      <configuration>
      <fork>true</fork>
      :
      :
      </configuration>

      fork=true forces the utility to be executed from the cmd-line and not
      run via org/apache/cxf/tools/wsdlto/WSDLToJava.

      Show
      The root cause of the failure is org/apache/cxf/tools/wsdlto/WSDLToJava (version 3.2.2) is calling the java compiler programmatically and this is failing when using jdk-9. Workaround for JDK-9. 1. Just as org.jboss.ws.cxf:jbossws-cxf-client is required to be added as a dependency to the pom file using the jaxws-tools-maven-plugin, now gnu.getopt:java-getopt:1.0.13 must be added as well. <dependency> <groupId>gnu.getopt</groupId> <artifactId>java-getopt</artifactId> <version>1.0.13</version> </dependency> 2. jaxws-tools-maven-plugin's configuration option "fork" must be set to "true" <configuration> <fork>true</fork> : : </configuration> fork=true forces the utility to be executed from the cmd-line and not run via org/apache/cxf/tools/wsdlto/WSDLToJava.

      Description

      When building jaxws-retail with jdk-9 the jaxws-tools-maven-plugin fails to run successfully.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rsearls R Searls
                Reporter:
                rsearls R Searls
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: