最近在用IDEA搞web項目,使用maven時遇到plugins標紅的情況:
自認為公司的網輕松搞定,結果實踐中總也不成功
各種File--setting--Maven設置
各種Project--Structure--Library操作
直到想起來,maven中央倉庫的鏡像可能坑了我
換到阿里的mirror,真順暢。。。。
記錄下吧,不枉費折騰了2小時
D:\apache-maven-3.5.4\conf--setting.xml 添加阿里的中央倉庫
<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
重啟IDEA,風輕雲淡