How to configure wsconsume with multiple wsdls and packages using maven
pbaker01 Sep 19, 2011 11:52 PMIs is possible to configure wsconsume with maven to generate client code for two different wsdsl and packages?
When I execute the plugin (see below) using: org.jboss.ws.plugins:maven-jaxws-tools-plugin:1.0.1.GA:wsconsume
I receive message:
[INFO] No wsdl URL / file specified, nothing to do.
What am I doing wrong.
<?
xml version="1.0" encoding="UTF-8"
?>
<
project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=
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>com.eloadmaster</groupId
><artifactId>ahm565</artifactId
><version>0.0.1-SNAPSHOT</version
><packaging>war</packaging
><name>AHM565</name
><description>AHM565 Client Project</description
>
<repositories
><repository
><id>JBOSS</id
><name>JBoss Repository</name
><url>https://repository.jboss.org/nexus/content/groups/public/</url
></repository
></repositories
>
<pluginRepositories
><pluginRepository
><id>JBOSS</id
><name>JBoss Repository</name
><url>https://repository.jboss.org/nexus/content/groups/public/</url
></pluginRepository
></pluginRepositories
>
<build
><pluginManagement
/>
<plugins
><plugin
><groupId>org.apache.maven.plugins</groupId
><artifactId>maven-war-plugin</artifactId
><version>2.1.1</version
><configuration
><warSourceDirectory>WebContent</warSourceDirectory
><webXml>WebContent/WEB-INF/web.xml</webXml
></configuration
></plugin
><plugin
><groupId>org.codehaus.mojo</groupId
><artifactId>jboss-maven-plugin</artifactId
><version>1.5.0</version
><configuration
><jbossHome>C:\JBoss\jboss-6.0.0.Final\</jbossHome
><serverName>default</serverName
><fileName>${project.basedir}/target/${project.build.finalName}.war</fileName
></configuration
></plugin
>
<plugin
><groupId>org.jboss.ws.plugins</groupId
><artifactId>maven-jaxws-tools-plugin</artifactId
><version>1.0.1.GA</version
><executions
><execution
><id>MyFirstService</id
><goals
><goal>wsconsume</goal
></goals
><configuration
><wsdls
><wsdl>http://localhost:8080/MyFirstService?wsdl</wsdl
></wsdls
><targetPackage>com.mypackage.myfirstservice</targetPackage
><sourceDirectory>${project.basedir}/src/main/java</sourceDirectory
><extension>true</extension
><verbose>true</verbose
><goalPrefix>wsconsume</goalPrefix
></configuration
></execution
><execution
><id>MySecondService</id
><goals
><goal>wsconsume</goal
></goals
><configuration
><wsdls
><wsdl>http://localhost:8080/MySecondService?wsdl</wsdl
></wsdls
><targetPackage>com.mypackage.mysecondservice</targetPackage
><sourceDirectory>${project.basedir}/src/main/java</sourceDirectory
><extension>true</extension
><verbose>true</verbose
><goalPrefix>wsconsume</goalPrefix
></configuration
></execution
></executions
></plugin
></plugins
></build
><dependencies>
<dependency
><groupId>org.jboss.ws.native</groupId
><artifactId>jbossws-native-client</artifactId
><version>3.4.1.GA</version
></dependency
>
<dependency
><groupId>org.jboss</groupId
><artifactId>jbossxb</artifactId
><version>2.0.1.GA</version
></dependency
>
</dependencies
>
</
project
>
Thank you in adavnce.
Paul