当前位置:   article > 正文

idea maven下载异常,报错 Cannot access alimaven (http://maven.aliyun.com/nexus/content/groups/public/)_has+not+been+downloaded+from+it+before

has+not+been+downloaded+from+it+before

1.maven下载报错信息

[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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26

2.问题原因

请添加图片描述

3.解决方案

解决 去掉work offline的勾选选项,只勾选本地仓库路径,保存确定,重新下载即可

4.其他问题

1.下载源码出现:Decompiled .class file ,右下角出现Cannot download sources Sources not found for: xxx
解决办法:
在对应项目pom.xml所在目录下执行以下命令:

mvn dependency:resolve -Dclassifier=sources
  • 1

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库重新下载即可!
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/425755
推荐阅读
相关标签
  

闽ICP备14008679号