eclipse中Maven项目pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver


eclipse中创建Maven项目时

  pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver

解决方案1、在pom文件中加入maven-war-plugin

    <plugins>    
        <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>    
    </plugins> 

 

解决方案2、在pom中配置依赖

<dependency> 
    <groupId>com.thoughtworks.xstream</groupId> 
    <artifactId>xstream</artifactId> 
    <version>1.4.9</version> 
</dependency>

 

如果还不行就是本地仓库下载的JAR包错误,删除本地仓库中的JAR包,重新下载

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM