Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2645

CXF codegen plugin does not properly expose "disableDependencyScan" config parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6
    • 2.2.7
    • None
    • None

    Description

      CXF-2275 introduced a new feature to allow reading WSDLs from maven repository by cxf-codegen-plugin. By default all dependencies with type "wsdl" will be processed. And this behaviour can be switched off by setting "disableDependencyScan" config parameter to "true".

      However, it does not expose this config parameter properly.

      Here is source code snippet from
      http://svn.apache.org/repos/asf/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java

      /**
           * By default all maven dependencies of type "wsdl" are added to the effective wsdlOptions. Setting this
           * parameter to true disables this functionality
           * 
           */
          boolean disableDependencyScan;
      

      It should use @parameter annotation to define it as a mojo parameter like:

      /**
           * By default all maven dependencies of type "wsdl" are added to the effective wsdlOptions. Setting this
           * parameter to true disables this functionality
           * 
           * @parameter expression="${cxf.disableDependencyScan}" default-value="false"
           */
          boolean disableDependencyScan;
      

      in order to expose it as a config variable.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            joeluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: