Description
When I tried to generrate client code using Axis2 Maven2 WSDL2Code Plug-in it gives me an error like this.
[ERROR] Failed to execute goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code (default-cli) on project Test2: The parameters 'packageName' for goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code are missing or invalid -> [Help 1]
But in Axis2 wsdl2java tool it is not essential to define a package name. If it is not set it will generate a package name. So here it must not be mandatory to define a package name.
My pom.xml is like this,
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Test2</groupId>
<artifactId>Test2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Test2</name>
<build>
<plugins>
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.6.2</version>
<executions>
<execution>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- <packageName>foo.test</packageName> -->
<wsdlFile>/home/prabhath/project/Array.wsdl</wsdlFile>
<outputDirectory>${basedir}/generated-sources</outputDirectory>
<databindingName>adb</databindingName>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-adb</artifactId>
<version>1.7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-transport-http</artifactId>
<version>1.7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-transport-local</artifactId>
<version>1.7.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Attachments
Issue Links
- duplicates
-
AXIS2-5365 WSDL2Code Maven plug-in should not consider packageName as a required parameter.
- Resolved