You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dave Levitt <da...@gmail.com> on 2010/05/06 20:43:10 UTC
axis2 1.5.1 - wsdl2code maven plugin gets wrong path in multi module
I have a multi-module maven project, that when completed, will be
generating client libraries from a number of wsdl files.
Executing maven from the client maven 'module' directory, the plugin
works as expected - generates all the sources and maven packages them
into a jar file.
Executing maven from the 'master project' root directory the plugin
does not process the path/name of the wsdl file correctly. [The
absolute path echoed in the log does not see to have the correct
format for a Windoze box]
Another client module is using the old Axis 1.4 wsdl2java plugin -
that is working fine. [both from the module directory and the parent
project root directory]
Build environment
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_20
Java home: C:\usr\bin\Java\jdk1.6.0_20\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Log Excerpt:
[INFO] Building voicemailclient
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [axis2-wsdl2code:wsdl2code {execution: default}]
Retrieving document at 'src/main/wsdl/VoiceMailServices.wsdl'.
java.io.FileNotFoundException: This file was not found:
file:/C:/work/TRiO/src/main/wsdl/VoiceMailServices.wsdl
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
Module POM
<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/maven-v4_0_0.xsd">
<parent>
<artifactId>projects</artifactId>
<groupId>com.company.trio.projects</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>voicemailclient</artifactId>
<packaging>jar</packaging>
<name>voicemailclient</name>
<url>http://localsite</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<packageName>com.company.services.voicemail</packageName>
<wsdlFile>src/main/wsdl/VoiceMailServices.wsdl</wsdlFile>
<portName>VoiceMailServicesPort</portName>
<databindingName>xmlbeans</databindingName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-api</artifactId>
<version>1.2.8</version>
</dependency>
<dependency>
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
<version>1.2.8</version>
</dependency>
<dependency>
<groupId>xmlbeans</groupId>
<artifactId>xbean</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
<version>1.6.2</version>
</dependency>
</dependencies>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org