IDEA创建MAVEN项目卡在Generating project in Batch mode。是MAVEN一直在请求:
http://repo1.maven.org/maven2/archetype-catalog.xml
这个项目目录的xml文件,由于墙的问题,加载缓慢,等待时间十分漫长。
解决方法:修改setting.xml文件,把mirror改成阿里的镜像。
①:打开maven目录下的conf/setting.xml,注意要是idea使用的maven。
②:搜索 <mirrors>;找到<mirrors>。在<mirrors>节点下添加。
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
③:运行MVN命令的时候加上 -DarchetypeCatalog=local这个参数。在IDEA中:
完成!
转自:https://blog.youkuaiyun.com/sheypang/article/details/79022260