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

cxf-codegen-plugin : wsdlLocation option is not used when set in defaultOptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.2
    • 2.5.3
    • Tooling
    • Novice

    Description

      I'm generating Java classes from WSDL using Maven.

      The plugin configuration in the pom.xml is the following :

      <plugin>
      	<groupId>org.apache.cxf</groupId>
      	<artifactId>cxf-codegen-plugin</artifactId>
      	<version>2.5.2</version>
      	<configuration>
      		<defaultOptions>
      			<wsdlLocation>http://test.url</wsdlLocation>
      		</defaultOptions>
      	</configuration>
      	<executions>
      		<execution>
      			<id>generate-sources</id>
      			<goals>
      				<goal>wsdl2java</goal>
      			</goals>
      		</execution>
      	</executions>
      </plugin>
      

      However, this configuration generates a wrong value for the attribute wsdlLocation of the @WebServiceClient annotation.

      When I debugged the plugin execution, it appeared that the wsdlLocation argument was not added to the wsdl2java application.

      It seems that the method void merge(Option) of the class org.apache.cxf.maven_plugin.wsdl2java.Option miss to merge the wsdlLocation property of the given Option object.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            spydesk@gmail.com Simon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: