[ 
https://issues.apache.org/jira/browse/AXIS2-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998286#comment-12998286
 ] 

Tomaž Majerhold commented on AXIS2-3585:
----------------------------------------

@Michael  No it is not true, that generate-sources, because this is not a goal, 
but the phase, so please be more exact

And by the way, the doc's are relay misleading and totally wrong approach:

--------------------------------------------------------------------------------
<plugin>
  <groupId>org.apache.axis2</groupId>
  <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
  <version>1.5.4</version>
  <executions>
   <execution>
     <phase>generate-sources</phase>
      <goals>
       <goal>wsdl2code</goal>
      </goals>
      <configuration>
        <packageName>com.foo.myservice</packageName>
        <wsdlFile>src/main/wsdl/myservice.wsdl</wsdlFile>
        <databindingName>jibx</databindingName>
       </configuration>
    </execution>
 </executions>                          
</plugin>
--------------------------------------------------------------------------------

But the biggest problem remain, how to specifies another binding parameters, 
like in ANT:

<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
   <classpath refid="axis2.lib.dir"/>
   <arg value="-uri"/>
   <arg file="axis2/wsdl/OZWIZARD_LU.wsdl"/>
   <arg value="-p"/>
   <arg value="si.arnes.ozwizardlu.soap"/>
   <arg value="-Ebindingfile"/>
   <arg value="jibx/binding.xml"/>
   <arg value="-d"/>
   <arg value="jibx"/>
   <arg value="-s"/>
   <arg value="-uw"/>
   <arg value="-S"/>
   <arg value="./src"/>
</java>

> axis2-wsdl2code ignores packageName in execution group 
> -------------------------------------------------------
>
>                 Key: AXIS2-3585
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3585
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.3
>            Reporter: Michael Dürig
>
> <plugin>
>     <groupId>org.apache.axis2</groupId>
>     <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
>     <version>1.3</version>         
>     <executions>
>         <execution>
>             <id>test1</id> 
>             <goals>
>                 <goal>wsdl2code</goal>
>             </goals>
>             <configuration>
>                 <packageName>foo.bar</packageName> 
>                 <wsdlFile>src/main/axis2/myservice.wsdl</wsdlFile>
>             </configuration>
>         </execution>
>     </executions>
> </plugin>        
> gives 
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] One or more required plugin parameters are invalid/missing for 
> 'axis2-wsdl2code:wsdl2code'
> [0] inside the definition for plugin: 'axis2-wsdl2code-maven-plugin'specify 
> the following:
> <configuration>
>   ...
>   <packageName>VALUE</packageName>
> </configuration>
> -OR-
> on the command line, specify: '-Daxis2.wsdl2code.package=VALUE'

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to