最近在家闲来无事想弄个项目打发下时间,使用IDEA通过Maven骨架构建Web项目时一直失败,搞了小半天搞得很烦躁。由于环境都是新装的,一直以为是环境有问题,万万没想到最后时应为使用的时旧的Maven仓库地址。按理说使用旧的应该也没有问题不知道为什么就是一直不行,换了新的就好了。
报错信息:
Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): Transfer failed for http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
阿里云旧仓库
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
阿里云新仓库
<mirror>
<id>alimaven-new</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/central/</url>
</mirror>
阿里云官方答疑:【FAQ】新版maven.aliyun.com答疑