zoukankan      html  css  js  c++  java
  • 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包,重新下载

  • 相关阅读:
    Pycharm5注册方式
    五、监听共享目录文件
    三、python webservice
    二、Python安装扩展库
    一、Python安装下载
    test
    拖延
    要乐观对待生活
    乞讨者
    不要总是指责和埋怨
  • 原文地址:https://www.cnblogs.com/helloquan/p/6889581.html
Copyright © 2011-2022 走看看