Cannot access aliyunmaven ( xxx ) in offline mode and the artifact

简介: Cannot access aliyunmaven ( xxx ) in offline mode and the artifact

记一次Maven无脑报错


报错提示:

Cannot access aliyunmaven (https://maven.aliyun.com/repository/public) in offline mode and the artifact


当看到这个报错信息后,首先想到的就是maven环境变量是否配置正确,然而经过一番查看后,发现maven配置是没有问题的,然后又想到是不是idea中maven没有配置正确,因为idea没有配置正确,是极有可能出现上述报错的,然而我的idea配置如下,也是没有问题的;


随后我想到,会不会是阿里云镜像改变了,导致读不到阿里云远程maven镜像了,随之我查了下阿里云仓库镜像,发现也是没有问题的;


后来经过一系列的查看各种配置发现,是idea中一项设置所导致的;


这个选项是脱机工作,意思就是不读取远程仓库,只读取本地已有的仓库,之所以报错原因就是我本地仓库是空的,然而我还选择了脱机工作🤣,真是愚蠢的一次报错。

目录
相关文章
|
5天前
|
存储
Build was configured to prefer settings repositories over project repositories but repository
Build was configured to prefer settings repositories over project repositories but repository
20 5
|
11月前
|
Java Maven
Maven中Could not transfer artifact xxx from/to xxx问题(附镜像云配置)
Maven中Could not transfer artifact xxx from/to xxx问题(附镜像云配置)
338 0
|
Java Maven
Error running ‘ssm [clean]‘: No valid Maven installation found. Either set the home directory in the
Error running ‘ssm [clean]‘: No valid Maven installation found. Either set the home directory in the
|
Java Maven
maven install时报错The packaging for this project did not assign a file to the build artifact
maven install时报错The packaging for this project did not assign a file to the build artifact
4642 0
|
存储 Java Maven
Maven - Artifact upload failed. Repository with ID='XXX' does not allow updating artifacts.
Maven - Artifact upload failed. Repository with ID='XXX' does not allow updating artifacts.
114 0
|
Java 应用服务中间件 Maven
Maven - Failed to clean project: Failed to delete
Maven - Failed to clean project: Failed to delete
371 0
Maven - Failed to clean project: Failed to delete
|
Java 应用服务中间件
Artifact SSMTest:war exploded: Error during artifact deployment. See server log for details.
Artifact SSMTest:war exploded: Error during artifact deployment. See server log for details.
673 0
Artifact SSMTest:war exploded: Error during artifact deployment. See server log for details.
|
Java Maven Spring
Idea Failed to read artifact descriptor for XXX
Idea Failed to read artifact descriptor for XXX
287 0
Idea Failed to read artifact descriptor for XXX