axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prabhath Suminda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AXIS2-5459) WSDL2Java Maven plugin always requires package name attribute
Date Tue, 20 Nov 2012 06:41:59 GMT
Prabhath Suminda created AXIS2-5459:
---------------------------------------

             Summary: WSDL2Java Maven plugin always requires package name attribute
                 Key: AXIS2-5459
                 URL: https://issues.apache.org/jira/browse/AXIS2-5459
             Project: Axis2
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.6.2
            Reporter: Prabhath Suminda


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>





--
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message