赞
踩
[ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Non-resolvable import POM: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact org.springframework.cloud:spring-cloud-dependencies:pom:2021.0.3 has not been downloaded from it before. @ line 54, column 25 [ERROR] Non-resolvable import POM: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact cn.hutool:hutool-bom:pom:5.8.2 has not been downloaded from it before. @ line 313, column 25 [ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-bootstrap:jar is missing. @ line 347, column 21 [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 352, column 21 [ERROR] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is missing. @ line 365, column 21 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project com.vpp:vpp-iot:3.5.0 (E:\1_workSpace\***\pom.xml) has 7 errors [ERROR] Non-resolvable import POM: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact org.springframework.cloud:spring-cloud-dependencies:pom:2021.0.3 has not been downloaded from it before. @ line 54, column 25 -> [Help 2] [ERROR] Non-resolvable import POM: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact com.alibaba.cloud:spring-cloud-alibaba-dependencies:pom:2021.0.1.0 has not been downloaded from it before. @ line 63, column 25 -> [Help 2] [ERROR] Non-resolvable import POM: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact org.springframework.boot:spring-boot-dependencies:pom:2.7.2 has not been downloaded from it before. @ line 86, column 25 -> [Help 2] [ERROR] Non-resolvable import POM: Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/) in offline mode and the artifact cn.hutool:hutool-bom:pom:5.8.2 has not been downloaded from it before. @ line 313, column 25 -> [Help 2] [ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-bootstrap:jar is missing. @ line 347, column 21 [ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 352, column 21 [ERROR] 'dependencies.dependency.version' for org.projectlombok:lombok:jar is missing. @ line 365, column 21 [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/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException Process finished with exit code 1
解决 去掉work offline的勾选选项,只勾选本地仓库路径,保存确定,重新下载即可
1.下载源码出现:Decompiled .class file ,右下角出现Cannot download sources Sources not found for: xxx
解决办法:
在对应项目pom.xml所在目录下执行以下命令:
mvn dependency:resolve -Dclassifier=sources
2.Maven Helper插件命令记录
clean -T 1C -Dmaven.compile.fork=true
clean package -T 1C -Dmaven.test.skip=true -Dmaven.compile.fork=true
compile -T 1C -Dmaven.test.skip=true -Dmaven.compile.fork=true
clean install package -Dmaven.test.skip=true
dependency:resolve -Dclassifier=sources
3.如果无法成功下载可以尝试,勾选下面三个选型,清除本地maven库重新下载即可!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。