解决使用maven的java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
2014-04-11 18:44
1106 查看
java web项目一直都是好好的,后面电脑安装过系统后(以之前的版本不一样),安装所需软件(如myeclipse、tomcat)并进行配置。然后在myeclipse中添加项目却报错了1.Archive for required library: ‘... .jar’ in project ‘xxxxxxxxx’ cannot be read or is not a valid ZIP file. 2. The project cannot be built until build path errors are resolved.但是我查找了一下那个jar确实是存在的。在网上查找了许久,答案不一:jar不完整、路径问题等等。
解决方案:
1)删除提示错误路径下的所有jar包(C:\Documents and Settings\Administrator\.m2\repository\org...)。
2)安装maven,详细的安装步骤点击here,
3)开始—运行—cmd—进入到web项目所在路径(cd:web项目的路径)—(a)输入mvn compile(编译源代码)回车;(b) mvn clean (清除目标目录中的生成结果)回车;(c)输入mvn clean install或者mvn clean install -DskipTests=true(下载所需jar)回车。
解决方案:
1)删除提示错误路径下的所有jar包(C:\Documents and Settings\Administrator\.m2\repository\org...)。
2)安装maven,详细的安装步骤点击here,
3)开始—运行—cmd—进入到web项目所在路径(cd:web项目的路径)—(a)输入mvn compile(编译源代码)回车;(b) mvn clean (清除目标目录中的生成结果)回车;(c)输入mvn clean install或者mvn clean install -DskipTests=true(下载所需jar)回车。
相关文章推荐
- 解决使用maven的java web项目导入后出现的有关问题, -cannot be read or is not a valid zip file
- 解决使用maven的java web项目导入或新建添加pom配置后出现的有关问题 -cannot be read or is not a valid ZIP file
- 解决java 项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 解决java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- 解决java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 解决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项目导入出现Type Archive for required library: XXX.jar cannot be read or is not a valid ZIP file
- 关于Eclipse导入的Maven项目报:" cannot be read or is not a valid ZIP file"错误的解决方案
- 构建maven项目报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
- Myeclipse10 添加工程中出现cannot be read or is not a valid ZIP file解决
- maven error: 用maven下载的spring jar包出现该异常 cannot be read or is not a valid ZIP file
- Myeclipse的problem中出现cannot be read or is not a valid ZIP file解决
- maven项目 关于Eclipse报:" cannot be read or is not a valid ZIP file"的解决方案
- 解决 eclipse XXX 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
- cannot be read or is not a valid ZIP file问题
- maven 异常 提示 cannot be read or is not a valid ZIP file