[
https://issues.apache.org/jira/browse/AXIS2-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13639465#comment-13639465
]
Kishanthan Thangarajah commented on AXIS2-5478:
-----------------------------------------------
Yes, the documentation is indeed incorrect. That would result in an error like
the below, where the plugin fails to get the configuration values. I also came
across this.
[ERROR] Failed to execute goal
org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code (default-cli) on
project calculator: The parameters 'packageName' for goal
org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code are missing or
invalid -> [Help 1]
The configuration section should not be inside the execution section and it
should be moved out. And yes, the version also can be updated to 1.6.2, which
is the latest.
The attached patch will add the required changes to the documentation of
wsdl2code maven plugin.
> documantation has wrong config example
> --------------------------------------
>
> Key: AXIS2-5478
> URL: https://issues.apache.org/jira/browse/AXIS2-5478
> Project: Axis2
> Issue Type: Bug
> Components: documentation
> Affects Versions: 1.6.2
> Environment: all
> Reporter: tibi
> Priority: Minor
> Labels: documentation
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> http://axis.apache.org/axis2/java/core/tools/maven-plugins/maven-wsdl2code-plugin.html
> this example is incorrect the config part should be moved up.
> so this:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>1.4</version>
> <executions>
> <execution>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> <configuration>
> <packageName>com.foo.myservice</packageName>
> <wsdlFile>src/main/wsdl/myservice.wsdl</wsdlFile>
> <databindingName>xmlbeans</databindingName>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> should be this:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>1.4</version>
> <configuration>
> <packageName>com.foo.myservice</packageName>
> <wsdlFile>src/main/wsdl/myservice.wsdl</wsdlFile>
> <databindingName>xmlbeans</databindingName>
> </configuration>
> <executions>
> <execution>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> and the version number could be uped ;)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]