axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Nasato (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5241) axis2-java2wsdl-maven-plugin Java2WSDLMojo and wrong Schema Generator property
Date Wed, 08 Feb 2012 11:43:59 GMT
axis2-java2wsdl-maven-plugin Java2WSDLMojo and wrong Schema Generator property
------------------------------------------------------------------------------

                 Key: AXIS2-5241
                 URL: https://issues.apache.org/jira/browse/AXIS2-5241
             Project: Axis2
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.6.1
         Environment: jdk 1.6.0_30, centos 5.7 64 bit, maven 2.2.1
            Reporter: Andrea Nasato
            Priority: Trivial


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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message