java - 用IDEA创建maven项目时,最后的archetype总是无法加载
大家讲道理
大家讲道理 2017-04-18 10:15:59
0
3
577

最后总是这样,不知道该如何解决

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
Ty80

It is usually a network problem. You can add a parameter archetypeCatalog=internal in Properties, or use a more domestic maven image, such as Alibaba Cloud:

<mirror>

        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror> 
PHPzhong

Add this

伊谢尔伦

When creating the project, I will use the template file in the Maven repository, but it suddenly becomes very large, more than 5M, and it takes a long time to open the browser and still have a good network.
The solution is,
1. Download http://repo1.maven.org/maven2...
2. Put it in the archetype folder of the local Manen warehouse
3. Set up the VM of the IDEA Maven->Runner interface The Options parameter value is -DarchetypeCatalog=local
4. Refresh the project Maven configuration, and reintroduce Maven in the right interface of the project

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template