I try to use this setting to generate wsdl at build time, but I can't make it work..
Can anyone tell me what's wrong with this ?
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>test</phase>
> <configuration>
> <tasks>
> <taskdef
>
> classname="org.codehaus.xfire.gen.WsdlGenTask"
>
> name="wsdlgen">
>
> <classpath>
>
> <pathelement
>
> path="${basedir}/target/classes" />
>
> <pathelement
>
> path="${basedir}/src/main/java" />
>
> <path
>
> refid="maven.test.classpath" />
>
> </classpath>
> </taskdef>
> <wsdlgen
>
> configUrl="${basedir}/src/main/resources/services.xml"
>
> outputDirectory="${basedir}/src/main/resources" />
> </tasks>
> <sourceRoot>
>
> ${basedir}/src/main/java
> </sourceRoot>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
>
> <groupId>org.codehaus.xfire</groupId>
>
> <artifactId>xfire-generator</artifactId>
>
> <version>${xfire-version}</version>
> <exclusions>
> <exclusion>
>
> <groupId>javax.xml</groupId>
>
> <artifactId>jsr173</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> <dependency>
>
> <groupId>org.codehaus.xfire</groupId>
>
> <artifactId>xfire-jaxws</artifactId>
>
> <version>${xfire-version}</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
>
> <artifactId>servlet-api</artifactId>
> <version>2.4</version>
> </dependency>
> </dependencies>
> </plugin>
>
--
View this message in context:
http://www.nabble.com/How-to-generate-a-wsdl-file-at-build-time-%28not-at-runtime%29---tf3956133s12049.html#a11246191
Sent from the ServiceMix - User mailing list archive at Nabble.com.
