我想用jaxws生成我的java類。問題是我的綁定文件被忽略。我在bindingDirectory中有兩個綁定文件。也許有人可以幫忙?jaxws導入。綁定文件被忽略
<profiles>
<profile>
<id>Generate model (POJOS) from wsdl</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<!-- JAX-WS provides a tool called wsimport which takes the WSDL of a
web service and generates proxy classes or the WSDL's service and port definitions.
These can then be used to access the web service endpoint. -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<executions>
<execution>
<id>Id1</id>
<goals>
<goal>wsimport</goal>
</goals>
<configuration>
<wsdlUrls>
<wsdlUrl>http://intan.local:8080/toa/ws/airService?wsdl</wsdlUrl>
</wsdlUrls>
<target>2.1</target>
<xjcArgs>
<xjcArg>-XautoNameResolution</xjcArg>
</xjcArgs>
<verbose>true</verbose>
<extension>true</extension>
<bindingFiles>
<bindingFile>src/main/resources/schemas/2011b/xjb/global.xjb</bindingFile>
<bindingFile>src/main/resources/schemas/2011b/xjb/TPA_ExtensionsType.xjb</bindingFile>
</bindingFiles>
<keep>true</keep>
<packageName>gr.intan.toa._2011b</packageName>
<sourceDestDir>src/main/generated</sourceDestDir>
<extension>true</extension>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>webservices-api</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>2.1.12</version>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.1.4</version>
</dependency>
</dependencies>
<configuration>
<target>2.1</target>
<xjcArgs>
<xjcArg>-XautoNameResolution</xjcArg>
</xjcArgs>
<bindingDirectory>src/main/resources/schemas/2011b/xjb</bindingDirectory>
<keep>true</keep>
</configuration>
</plugin>
</plugins>
</build>
</profile>
在此先感謝
你找到一個解決這個問題? –