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

    • Bug
    • Resolution: Done
    • Minor
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • Examples
    • 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, yfang@redhat.com 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

      Attachments

        Issue Links

          Activity

            People

              yfang@redhat.com Freeman(Yue) Fang
              fbolton@redhat.com Fintan Bolton (Inactive)
              Jan Kasztura Jan Kasztura (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: