看一下具体的报错信息:
ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] 读取E:\develop java\项目管理工具\apache-maven-3.6.1\mvn_resp\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar时出错; zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/RestApiService.java:[19,1] 无法访问org.apache.dubbo.admin.impl.consumer
ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/api/GreetingService.java:[20,1] 无法访问org.apache.dubbo.admin.api
ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ConsumerBootstrap.java:[19,1] 无法访问org.apache.dubbo.admin
ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/provider/AnnotatedGreetingService.java:[20,1] 无法访问org.apache.dubbo.admin.impl.provider
ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[26,8] 无法访问java.lang
ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[25,2] 找不到符号
符号: 类 Service
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[28,13] 找不到符号
符号: 类 GreetingService
位置: 类 org.apache.dubbo.admin.impl.consumer.AnnotatedGreetingService
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[30,28] 找不到符号
符号: 类 String
位置: 类 org.apache.dubbo.admin.impl.consumer.AnnotatedGreetingService
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[30,12] 找不到符号
符号: 类 String
位置: 类 org.apache.dubbo.admin.impl.consumer.AnnotatedGreetingService
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[35,8] 无法访问org.apache.dubbo
ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[36,29] 找不到符号
符号: 类 String
位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[45,6] 找不到符号
符号: 类 Configuration
位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[46,6] 找不到符号
符号: 类 EnableDubbo
位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[47,6] 找不到符号
符号: 类 PropertySource
位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[50,17] 找不到符号
符号: 类 String
位置: 类 org.apache.dubbo.admin.ProviderBootstrap.ProviderConfiguration
[INFO] 16 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for dubbo-admin 0.3.0-SNAPSHOT:
[INFO]
[INFO] dubbo-admin ........................................ SUCCESS [ 3.083 s]
[INFO] dubbo-admin-ui ..................................... SUCCESS [ 48.133 s]
[INFO] dubbo-admin-server ................................. SUCCESS [ 10.154 s]
[INFO] dubbo-admin-distribution ........................... SUCCESS [ 1.609 s]
[INFO] dubbo-admin-test ................................... FAILURE [ 2.141 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2023-03-25T08:43:51+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project dubbo-admin-test: Compilation failure: Compilation failure:
[ERROR] 读取E:\develop java\项目管理工具\apache-maven-3.6.1\mvn_resp\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar时出错; zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/RestApiService.java:[19,1] 无法访问org.apache.dubbo.admin.impl.consumer
[ERROR] ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/api/GreetingService.java:[20,1] 无法访问org.apache.dubbo.admin.api
[ERROR] ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ConsumerBootstrap.java:[19,1] 无法访问org.apache.dubbo.admin
[ERROR] ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/provider/AnnotatedGreetingService.java:[20,1] 无法访问org.apache.dubbo.admin.impl.provider
[ERROR] ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[26,8] 无法访问java.lang
[ERROR] ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[25,2] 找不到符号
[ERROR] 符号: 类 Service
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[28,13] 找不到符号
[ERROR] 符号: 类 GreetingService
[ERROR] 位置: 类 org.apache.dubbo.admin.impl.consumer.AnnotatedGreetingService
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[30,28] 找不到符号
[ERROR] 符号: 类 String
[ERROR] 位置: 类 org.apache.dubbo.admin.impl.consumer.AnnotatedGreetingService
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/impl/consumer/AnnotatedGreetingService.java:[30,12] 找不到符号
[ERROR] 符号: 类 String
[ERROR] 位置: 类 org.apache.dubbo.admin.impl.consumer.AnnotatedGreetingService
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[35,8] 无法访问org.apache.dubbo
[ERROR] ZipException opening "spring-core-5.2.8.RELEASE.jar": zip END header not found
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[36,29] 找不到符号
[ERROR] 符号: 类 String
[ERROR] 位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[45,6] 找不到符号
[ERROR] 符号: 类 Configuration
[ERROR] 位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[46,6] 找不到符号
[ERROR] 符号: 类 EnableDubbo
[ERROR] 位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[47,6] 找不到符号
[ERROR] 符号: 类 PropertySource
[ERROR] 位置: 类 org.apache.dubbo.admin.ProviderBootstrap
[ERROR] /E:/develop java/softWare/dubbo-admin/官方/dubbo-admin/dubbo-admin-test/src/main/java/org/apache/dubbo/admin/ProviderBootstrap.java:[50,17] 找不到符号
[ERROR] 符号: 类 String
[ERROR] 位置: 类 org.apache.dubbo.admin.ProviderBootstrap.ProviderConfiguration
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :dubbo-admin-test
核心说法就是:
读取E:\develop java\项目管理工具\apache-maven-3.6.1\mvn_resp\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar时出错; zip END header not found
就是说在E:\develop java\项目管理工具\apache-maven-3.6.1\mvn_resp\org\springframework\spring-core\5.2.8.RELEASE包下面的这个spring-core-5.2.8.RELEASE.jar有问题
解决办法:从maven官网直接输入文件名称,下载对应的版本文件,将自己本地仓库的spring-core-5.2.8.RELEASE.jar文件更换即可解决
附:maven官网网址:https://mvnrepository.com/artifact/org.springframework/spring-core/5.2.8.RELEASE
下载步骤:
①
②
③