search

Home  >  Q&A  >  body text

java - 用IDEA创建maven项目时,最后的archetype总是无法加载

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

大家讲道理大家讲道理2949 days ago578

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:17:59

    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> 

    reply
    0
  • PHPz

    PHPz2017-04-18 10:17:59

    Add this

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:17:59

    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

    reply
    0
  • Cancelreply