0

我想使用 jaxws-maven-plugin 创建 SEI。但是在这个mvn install过程中有一个警告。在 ....m2\repository\org\codehaus\woodstox\wstx-asl\3.2.3 下,我可以像警告所说的那样找到丢失的 pom。

我的 pom.xml 的一部分

        <plugin> 
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>jaxws-maven-plugin</artifactId>
            <version>1.11</version>
            <executions>
                <execution>
                    <goals>
                        <goal>wsimport</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <sourceDestDir>src/main/java</sourceDestDir>
                    <wsdlUrls>
                        <wsdlUrl>file:/XXXXXXX.wsdl</wsdlUrl>
                    </wsdlUrls> 
            </configuration>
        </plugin>

执行后mvn intall我得到这样的输出:

[INFO]  
[INFO]   ------------------------------------------------------------------------
[INFO] Building test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://repo.maven.apache.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.3/wstx-asl-3.2.3.pom
[INFO] Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.3/wstx-asl-3.2.3.pom (2 KB at 4.6 KB/sec)
[INFO] Downloading: http://repo.maven.apache.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.3/wstx-asl-3.2.3.jar
[INFO] Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/woodstox/wstx-asl/3.2.3/wstx-asl-3.2.3.jar (508 KB at 4062.9 KB/sec)
[INFO] 
[INFO] --- jaxws-maven-plugin:1.11:wsimport (default) @ test ---
[WARNING] The POM for woodstox:wstx-asl:jar:3.2.3 is missing, no dependency information available
...

我不知道,是什么导致了问题。

4

1 回答 1

1

可能缺少的 Maven 依赖项导致了问题。在你的 pom 文件中定义:

<dependency>
   <groupId>org.codehaus.woodstox</groupId>
   <artifactId>wstx-asl</artifactId>
   <version>3.2.3</version>
</dependency>

这应该可以修复警告。

于 2015-12-16T09:17:51.213 回答