Mac IntelliJ IDEA 创建maven-archetype-webapp超时问题

下载 http://repo1.maven.org/maven2/archetype-catalog.xml到maven目录下(.../.m2/repository/org/apache/maven/archetype/archetype-catalog/2.4)

方法一:

1. File -> New -> project...

2. 勾选 Create from archetype

3. 选择 org.apache.maven.archetype:maven-archetype-webapp -> Next

4. 填写 GroupId 和 ArtifactId -> Next

5. 在"Properties"中, 点击 + 号, 添加Maven Property

Name: archetypeCatalog

Value: internal

OK -> Next

6. 填写Project name, Finish即可


方法二(推荐):

1. File -> Other Settings -> Default Settings...

2. Build, Execution, Deployment -> Build Tools -> Maven -> Runner, 在VM Options中填写如下

-DarchetypeCatalog=internal

Apply -> OK即可


参考文章:

1. IDEA新建MAVEN项目时速度缓慢: http://blog.csdn.net/qq_30551211/article/details/51277444

2. 解决IDEA创建maven项目太慢的问题: http://blog.csdn.net/ljweihappy/article/details/52288186

3. 解决Maven使用artchetype:create创建工程失败的问题: https://tonydeng.github.io/2015/09/18/maven-generate-project/




你可能感兴趣的:(IntelliJ,IDEA,Mac)