修改了倉庫的默認(rèn)路徑就不能訪問中央倉庫了
沒有修改路徑之前是可以訪問中央倉庫的,修改之后就不行了。
plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5:could not transfer artifact org.apache.maven.plugins:maven-clean-plugun:pom:2.5 from/to central
我設(shè)置了mirror還是不行
為什么?
2015-12-22
估計(jì)是網(wǎng)絡(luò)原因吧,maven有些jar在谷歌服務(wù)器上,國內(nèi)訪問很慢的,你要是不想用本地的倉庫,建議用國內(nèi)鏡像倉庫吧,話說,一般本地倉庫學(xué)習(xí)就夠用了,不需要浪費(fèi)時(shí)間在這上面,都不如把時(shí)間用在記住maven的命令呢。以上有不妥之處,請見諒。