创建maven时pom报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver

创建maven项目时(war包,jar和pom没有出现这种情况)pom文件报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver,出现这种情况解决办法有两种:

第一种:

删除对应的包下的jar重新下载(一般这种可能性比较小)

第二种:

在pom文件中添加如下插件:

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-war-plugin</artifactId>

<version>2.6</version>

<configuration>

<webResources>

<resource>

<directory>src/main/webapp/WEB-INF</directory>

<filtering>true</filtering>

<targetPath>WEB-INF</targetPath>

</resource>

</webResources>

</configuration>

</plugin>

我的解决方式是第二种。

你可能感兴趣的:(创建maven时pom报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver)