Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5241

axis2-java2wsdl-maven-plugin Java2WSDLMojo and wrong Schema Generator property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.5.5, 1.6.1
    • 1.6.2, 1.7.0
    • Tools
    • None
    • jdk 1.6.0_30, centos 5.7 64 bit, maven 2.2.1

    Description

      The property schemaGenClassName in class Java2WSDLMojo has a wrong property annotation name. It is ${axis2.java2wsdl.nsGenClassName} and should be ${axis2.java2wsdl.schemaGenClassName}.

      If I use this pom.xml my PlexBeanSchemaGenerator is nevere istantiated.
      <pre>
      <plugin>
      <groupId>org.apache.axis2</groupId>
      <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
      <version>1.6.1</version>
      <configuration>
      <className>codfe.cp2a8CBean</className>
      <outputFileName>${basedir}/resources/codfe-service.wsdl</outputFileName>
      <serviceName>codfe</serviceName>
      <schemaGenClassName>it.kibernetes.axis2.java2wsdl.PlexBeanSchemaGenerator</schemaGenClassName>
      </configuration>
      <executions>
      <execution>
      <goals>
      <goal>java2wsdl</goal>
      </goals>
      </execution>
      </executions>
      ....
      </pre>

      Changing Java2WSDLMojo this way corrects the problem:
      <pre>
      andrean@colinux:~/work/plex6.1/axis2-1.6.1-svn/modules/tool$ svn diff axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java
      Index: axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java
      ===================================================================
      — axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java (revision 1225773)
      +++ axis2-java2wsdl-maven-plugin/src/main/java/org/apache/axis2/maven2/java2wsdl/Java2WSDLMojo.java (working copy)
      @@ -128,7 +128,7 @@

      /**

      • Schema Generator
      • * @parameter expression="${axis2.java2wsdl.nsGenClassName}"
        + * @parameter expression="${axis2.java2wsdl.schemaGenClassName}"
        */
        private String schemaGenClassName;

      andrean@colinux:~/work/plex6.1/axis2-1.6.1-svn/modules/tool$
      </pre>

      Attachments

        Activity

          People

            sagara Sagara Gunathunga
            gtrev Andrea Nasato
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: