I configured the axistools-maven-plugin as follows:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<wsdlDirectory>/src/main/resources</wsdlDirectory>
<wsdlFiles>
<wsdlFile>adjustment.wsdl</wsdlFile>
</wsdlFiles>
<keep>true</keep>
<allElements>true</allElements>
<outputDirectory>/src/main/java</outputDirectory>
<subPackageByFileName>true</subPackageByFileName>
<useEmitter>true</useEmitter>
<wsdlVersion>2</wsdlVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
but my wsdl files are not being referred properly. Is the configuration correct?
I am getting the following info msg always
[INFO] Nothing to generate. All WSDL files are up to date.
For me it was the directory parameter name. It's not <wsdlDirectory>
but <sourceDirectory>
. Anyway, here's my working config:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<!-- A directory where the WSDL files reside: -->
<sourceDirectory>${basedir}/src/main/resources/</sourceDirectory>
<!-- The list of WSDL files: -->
<wsdlFiles>
<wsdlFile>services.wsdl</wsdlFile>
</wsdlFiles>
<allElements>true</allElements>
<!-- Where you want the generated files: -->
<outputDirectory>${basedir}/src/main/java</outputDirectory>
<subPackageByFileName>true</subPackageByFileName>
<useEmitter>false</useEmitter>
<verbose>true</verbose>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>