无法执行目标org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.2:wsgen(generate-wsdl)

时间:2018-08-30 14:04:58

标签: java eclipse maven wsgen

当我尝试在Eclipse上构建Maven项目时遇到此问题。我拥有最新的Eclipse phaton,并且正在使用Java 1.8和Maven 3.5。 我收到此错误。它适用于我的其他队友,因此我们可以找出可能导致问题的原因。

[错误]无法在项目wes-service-p3base上执行目标org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.2:wsgen(generate-wsdl):无法执行wsgen:NullPointerException-> [帮助1]

  <plugin>
    <groupId>org.jvnet.jax-ws-commons</groupId>
    <artifactId>jaxws-maven-plugin</artifactId>
    <version>2.2</version>
    <!-- Generate a WSDL file -->
    <executions>
      <execution>
        <id>generate-wsdl</id>
        <phase>generate-resources</phase>
        <goals>
          <goal>wsgen</goal>
        </goals>
        <configuration>
          <!-- Found in wcs-security-ejb which is a dependency -->
          <sei>com.fortna.wcs.security.service.WCSSecurity</sei>
          <genWsdl>true</genWsdl>
          <verbose>true</verbose>
          <xnocompile>false</xnocompile>
          <encoding>UTF-8</encoding>
          <keep>false</keep>
        </configuration>
      </execution>
      <execution>
        <id>generate-ws-client-classes</id>
        <phase>generate-resources</phase>
        <goals>
          <goal>wsimport</goal>
        </goals>
        <configuration>
          <wsdlDirectory>${project.build.directory}/generated-sources/wsdl</wsdlDirectory>
        </configuration>
      </execution>
    </executions>
  </plugin>

0 个答案:

没有答案