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>
伊谢尔伦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