we have to add plugin to import wsdl using pom.xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>2.4.1</version>
<executions>
<!-- Added wsdl file for manage user -->
<execution>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<wsdlFiles>
<wsdlFile>${basedir}/src/main/resources/wsdl/manageuser.wsdl</wsdlFile>
</wsdlFiles>
<xjcArgs>
<xjcArg>-XautoNameResolution</xjcArg>
</xjcArgs>
<keep>true</keep>
<sourceDestDir>src/main/java</sourceDestDir>
<verbose>true</verbose>
<target>2.0</target>
</configuration>
<id>generate-sources</id>
<phase>generate-sources</phase>
</execution>
</executions>
<configuration>
<sourceDestDir>src/main/java</sourceDestDir>
<xnocompile>true</xnocompile>
<verbose>true</verbose>
<extension>true</extension>
</configuration>
</plugin>
</plugins>
<finalName>manageuser</finalName>
</build>
No comments:
Post a Comment