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

cxf-codegen-plugin : wsdl2java does not take packagename argument into account

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1, 2.0.6
    • 2.1.1, 2.0.7
    • WS-* Components
    • None
    • Moderate

    Description

      When using the wsdl2java task of the Maven cxf-codegen-plugin, the argument packagename is not taken into account for the generated code.

      In order to reproduce the bug, just create a simple maven project with only one WSDL, and try to generate java code through a maven codegen task :

      <plugin>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-codegen-plugin</artifactId>
      <version>${cxf.version}</version>
      <executions>
      <execution>
      <id>generate-sources</id>
      <phase>generate-sources</phase>
      <configuration>
      <sourceRoot>${basedir}/target/generated/</sourceRoot>
      <wsdlOptions>
      <wsdlOption>
      <wsdl>${basedir}/src/main/resources/wsdl/my_simple_wsdl.wsdl</wsdl>
      <extraargs>
      <extraarg>p</extraarg>
      <extraarg>com.something.else</extraarg>
      </extraargs>
      </wsdlOption>
      </wsdlOptions>
      </configuration>
      <goals>
      <goal>wsdl2java</goal>
      </goals>
      </execution>
      </executions>
      </plugin>

      It seems to work only with cxf 2.0.2-incubator

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            jc.meillaud meillaud
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: