大佬教程收集整理的这篇文章主要介绍了java – 所需库的类型存档:项目’starter’中的spring-core-4.0.1.RELEASE.jar’无法读取或不是有效的ZIP文件,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在Eclipse(STS 3.4)中导入Spring Starter zipped project generated by Spring Initializr时出错
是Eclipse问题还是spring-core-4.0.1.RELEASE.jar有什么特别之处?
它的大小是979016B.
更新:尝试回答https://stackoverflow.com/a/20093533/482717至eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP file
运行mvn包-U时
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compilE) on project demo: Compilation failure: Compilation failure: [ERROR] 读取C:\Users\weibl\.m2\repository\org\springframework\spring-context\4.0.1.RELEASE\spring-context-4.0.1.RELEASE.jar时出错; invalid LOC header (bad signaturE) [ERROR] 读取C:\Users\weibl\.m2\repository\org\springframework\spring-aop\4.0.1.RELEASE\spring-aop-4.0.1.RELEASE.jar时出错; invalid LOC header (bad signaturE) [ERROR] 读取C:\Users\weibl\.m2\repository\org\springframework\spring-beans\4.0.1.RELEASE\spring-beans-4.0.1.RELEASE.jar时出错; invalid CEN header (bad signaturE) [ERROR] 读取C:\Users\weibl\.m2\repository\org\springframework\spring-expression\4.0.1.RELEASE\spring-expression-4.0.1.RELEASE.jar时出错; invalid LOC header (bad signaturE) [ERROR] 读取C:\Users\weibl\.m2\repository\ch\qos\logBACk\logBACk-core\1.1.0\logBACk-core-1.1.0.jar时出错; invalid CEN header (bad signaturE) [ERROR] 读取C:\Users\weibl\.m2\repository\org\springframework\spring-context\4.0.1.RELEASE\spring-context-4.0.1.RELEASE.jar时出错; cAnnot read zip file entry [ERROR] 读取C:\Users\weibl\.m2\repository\org\springframework\spring-aop\4.0.1.RELEASE\spring-aop-4.0.1.RELEASE.jar时出错; cAnnot read zip file entry [ERROR] /D:/Workspaces/workspace-sts-3.4.0.RELEASE/starter/src/main/java/demo/Application.java:[5,46] 程序包org.springframework.context.Annotation不存在 [ERROR] /D:/Workspaces/workspace-sts-3.4.0.RELEASE/starter/src/main/java/demo/Application.java:[7,2] 找不到符号 [ERROR] 符号: 类 ComponentScan [ERROR] /D:/Workspaces/workspace-sts-3.4.0.RELEASE/starter/src/main/java/demo/Application.java:[12,30] 无法访问org.springframework.context.ConfigurableApplicationContext [ERROR] 找不到org.springframework.context.ConfigurableApplicationContext的类文件 [ERROR] -> [Help 1]
@H_696_15@
D:\Workspaces\workspace-sts-3.4.0.RELEASE\starter>mvn -version Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800) Maven home: D:\Progs\spring@R_489_9016@e\apache-maven-3.0.4\bin\.. Java version: 1.7.0_11,vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.7.0_11\jre Default locale: zh_CN,platform encoding: GBK OS name: "windows 7",version: "6.1",arch: "amd64",family: "windows" D:\Workspaces\workspace-sts-3.4.0.RELEASE\starter>
@H_696_15@
以上是大佬教程为你收集整理的java – 所需库的类型存档:项目’starter’中的spring-core-4.0.1.RELEASE.jar’无法读取或不是有效的ZIP文件全部内容,希望文章能够帮你解决java – 所需库的类型存档:项目’starter’中的spring-core-4.0.1.RELEASE.jar’无法读取或不是有效的ZIP文件所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。