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>

    解决方案3:删除本地仓库下载的JAR包,

    C:UsersEuphemiaShaw.m2 epositorycom houghtworksxstreamxstream

    这个文件夹再update

    最后我这三种方法使用后还是没解决,最后解决是

    改成jdk自带的jre就好了,也不知道为什么

  • 相关阅读:
    转移阵地啦
    春之感--3月10日
    小鱼儿
    关于时间方法(date和simpledateformat)的实验
    hadoop练习处理地震数据
    出现log4j.properties问题
    远程hadoop集群方法
    小W学物理
    灵知的太阳信仰
    Blue
  • 原文地址:https://www.cnblogs.com/xym4869/p/8483196.html
Copyright © 2011-2022 走看看