<dependency>
<groupId>org.codehaus</groupId>
<artifactId>wstx-asl</artifactId>
<version>3.2.7</version>
<type>jar</type>
</dependency>
C:\Documents and Settings\Administrator\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.7目录下有wstx-asl-3.2.7.jar文件
但是总是报错
查看C:\Documents and Settings\Administrator\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.7目录下
wstx-asl-3.2.7.pom文件
有如下类容
<?xml version="1.0" encoding="UTF-8"?>
<project>
<!-- General information -->
<modelVersion>4.0.0</modelVersion>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>wstx-asl</artifactId>
<name>Woodstox</name>
<version>3.2.7</version>
<description>Woodstox is a high-performance XML processor that implements Stax (JSR-173) API</description>
<!-- Contact information -->
<url>http://woodstox.codehaus.org</url>
<issueManagement>
<url>http://jira.codehaus.org/browse/WSTX</url>
</issueManagement>
<!-- Dependency information -->
<dependencies>
<!-- Stax API jar is needed; 1.0.1 preferable over vanilla 1.0, since
it contains one critical bug fix to implementation auto-detection
-->
<dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
<!-- Licensing (joy!) -->
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<organization>
<name>Codehaus</name>
<url>http://www.codehaus.org/</url>
</organization>
</project>
把红色的copy出来代替原有的
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>wstx-asl</artifactId>
<version>3.2.7</version>
<scope>compile</scope>
</dependency>
错误消失!!!