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中一项设置所导致的;


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

目录
相关文章
|
开发工具 数据安全/隐私保护 git
remote: The project you were looking for could not be found.
因为使用了不同的账号对不同的项目进行登录,在更换回原先的账户下载git上的代码时,就报了这个问题,这个问题的导致原因其实也就是我们不断更换登录账户所导致的。
575 0
remote: The project you were looking for could not be found.
|
Android开发
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
|
4月前
|
Java Maven
关于The POM for xxxxxx:jar:s missing, no dependency information avail 问题的解决
关于The POM for xxxxxx:jar:s missing, no dependency information avail 问题的解决
231 1
|
8月前
|
存储
Build was configured to prefer settings repositories over project repositories but repository
Build was configured to prefer settings repositories over project repositories but repository
377 5
|
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
7051 0
|
Java Maven
Maven中Could not transfer artifact xxx from/to xxx问题(附镜像云配置)
Maven中Could not transfer artifact xxx from/to xxx问题(附镜像云配置)
827 0
No cached version of com.android.tools.build:gradle:2.0.0 available for offline mode.
No cached version of com.android.tools.build:gradle:2.0.0 available for offline mode.
157 0
No plugin found for prefix ‘doclint‘ in the current project
No plugin found for prefix ‘doclint‘ in the current project
145 0

热门文章

最新文章