hgkrt,
If I use the wsdl-first maven archetype, it generates this in the
pom.xml file.
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>....
This generator is executed correctly, so perhaps you can try to change
your pom.xml file like this as well.
Gert
hgkrt wrote:
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>