记一个mvn奇怪错误: Archive for required library: 'D:/mvn/repos/junit/junit/3.8.1/junit-3.8.1.jar' in project 'xxx' cannot be read or is not a valid ZIP file
2017-01-06 16:41
656 查看
我的maven 项目有一个红色感叹号, 而且Problems 存在 errors :
Description Resource Path Location Type
Archive for required library: 'D:/mvn/repos/junit/junit/3.8.1/junit-3.8.1.jar' in project 'xxx' cannot be read or is not a valid ZIP file ktb-mgr Maven Webapp Build path Build Path Problem
junit-3.8.1.jar 是明明存在的啊! 而且本地mvn 也存在啊! 为什么还是这样的错误, Project -> Clean 后还是一样啊!
mvn clean compile 也是 BUILD SUCCESS, 为什么。。。?
等等, 好像有所不对。。。
junit 里面竟然是空的! 。。。
我明白了, mvn clean compile 会 BUILD SUCCESS 是因为 我项目中没有用到 junit。。
重命名 junit jar , 再次mvn clean compile:
结果:
eclipse中 再次 Project -> Clean , all right !
Description Resource Path Location Type
Archive for required library: 'D:/mvn/repos/junit/junit/3.8.1/junit-3.8.1.jar' in project 'xxx' cannot be read or is not a valid ZIP file ktb-mgr Maven Webapp Build path Build Path Problem
junit-3.8.1.jar 是明明存在的啊! 而且本地mvn 也存在啊! 为什么还是这样的错误, Project -> Clean 后还是一样啊!
mvn clean compile 也是 BUILD SUCCESS, 为什么。。。?
等等, 好像有所不对。。。
junit 里面竟然是空的! 。。。
我明白了, mvn clean compile 会 BUILD SUCCESS 是因为 我项目中没有用到 junit。。
重命名 junit jar , 再次mvn clean compile:
结果:
eclipse中 再次 Project -> Clean , all right !
相关文章推荐
- Type Archive for required library: 'C:/Users/EuphemiaShaw/.m2/repository/org/apache/hadoop/hadoop-hdfs/2.6.5/hadoop-hdfs-2.6.5.jar' in project 'mapreduce' cannot be read or is not a valid ZIP file
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- Archive for required library:xxxxx/spring-beans-3.2.4.RELEASE.jar in project XXXXX cannot be read or is not a valid ZIP file
- maven项目导入出现Type Archive for required library: XXX.jar cannot be read or is not a valid ZIP file
- Maven异常_05_Archive for required library cannot be read or is not a valid ZIP file
- Archive for required library xx cannot be read or is not a valid ZIP file
- Archive for required library: "xxxx" in project '*' cannot be read or is not a valid ZIP file
- eclipse导入项目Archive for required library cannot be read or is not a valid ZIP file
- eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP 问题
- eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP fi
- archive for required library could not be read or is not a valid ZIP file
- Archive for required library: ‘WebContent/WEB-INF/lib/xxx.jar cannot be read or is not Zip file
- 关于Eclipse导入的Maven项目报:" cannot be read or is not a valid ZIP file"错误的解决方案
- Archive for required library: '/libs/android-support-v4.jar' in project '' cannot be read or is not
- maven 异常 提示 cannot be read or is not a valid ZIP file
- Myeclipse的problem中出现cannot be read or is not a valid ZIP file解决
- 解决使用maven的java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- 解决java web项目出现的有关问题 -cannot be read or is not a valid ZIP file
- maven项目 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案