问题:maven报错,说是插件在离线模式下载不了
明明不在maven的离线模式,但是总是报错说maven出于离线模式,然后资源总是下载不了
Cannot access nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public) in offline mode and the artifact org.apache.maven.plugins:maven-clean-plugin:jar:3.1.0 has not been downloaded from it before.
maven 离线设置一
maven 离线设置二
这是网上常见的maven离线模式设置,明明不在maven的离线模式,但是总是报错说maven出于离线模式,然后资源总是下载不了
maven 离线设置三
maven离线模式设置总结_eclipse maven update project offline-CSDN博客
从这个网址,可以看出maven的离线设置还可以这样设置牛牛
解决:
找到maven\conf\settings.xml文件,,如果settings.xml 文件里是这个<offline>true</offline>就改回来<offline>false</offline>
改好设置后,插件可以正常下载,然后 maven的骨架也能生成的