Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5844

Should enable fork option in codegen plug-in for quickstarts/cxf/camel-cxf-contract-first

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.3
    • Fix Version/s: jboss-fuse-6.3
    • Component/s: Examples
    • Labels:
      None

      Description

      In the POM file for our quickstarts/cxf/camel-cxf-contract-first example, we configure the Maven codegen plug-in with additional JVM args as follows:

      <configuration>
        ...
        <additionalJvmArgs>-Djavax.xml.accessExternalSchema=jar:file,file</additionalJvmArgs>
      </configuration>
      

      The additionalJvmArgs option is set, but there is no fork setting here. But according to the CXF docs [1]

      "Additional JVM args set on the forked process if fork is not false"

      We need the fork option to be set to once or always, otherwise additionalJvmArgs is ignored. In other words, the correct configuration could look like:

      <configuration>
        ...
        <fork>once</fork>
        <additionalJvmArgs>-Djavax.xml.accessExternalSchema=jar:file,file</additionalJvmArgs>
      </configuration>
      

      In email correspondence, Freeman(Yue) Fang has confirmed to me that the default setting of fork is false, so that the JVM args setting is currently being ignored.

      [1] https://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ffang Freeman(Yue) Fang
                  Reporter:
                  fbolton Fintan Bolton
                  Tester:
                  Jan Kasztura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: