Add the following plugin and dependencies
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<!-- <urls>
<url>http://sample.webservice.com?wsdl
</url>
</urls> -->
<wsdlFiles>
<wsdlFile>HelloService.wsdl</wsdlFile>
</wsdlFiles>
<outputDirectory>/src/main/java</outputDirectory>
<!-- <packageSpace>com.company.wsdl</packageSpace> -->
<testCases>true</testCases>
<serverSide>true</serverSide>
<subPackageByFileName>true</subPackageByFileName>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
Dependency :
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4.0</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.2-RC2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-wsdl4j</artifactId>
<version>1.2-RC2</version>
<!--<properties>
<war.bundle>true</war.bundle>
</properties>-->
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis-saaj</artifactId>
<version>1.2-RC2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId>
<version>2.4.0</version>
<!-- <properties> <war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.4.0</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>2.0.2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.3</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
<version>0.2</version>
<!-- <properties>
<war.bundle>true</war.bundle>
</properties> -->
</dependency>
0 comments:
Post a Comment