方法一:設置idear的maven運行參數
或:
加:archetypeCatalog=internal
如果ctrl+alt+s進設置,只能對當前項目新建Module其作用:
方法二:在新建maven項目時候設置archetypeCatalog=internal,這種方式每次都需要設置,而且spring boot項目沒這個設置,推薦第一種方法。
其他方法:
命令方式:
mvn archetype:generate \ -DgroupId=com.mycom.helloworld \ -DartifactId=helloworld \ -DarchetypeArtifactId=maven-archetype-quickstart \ -DinteractiveMode=false \ -DarchetypeCatalog=http://maven.aliyun.com/nexus/content/groups/public/ 作者:TW李鵬 鏈接:https://www.jianshu.com/p/d95d0b1b6975 來源:簡書
設置使用本地catalog文件:IDEA中設置archetype的使用方式爲local
-DarchetypeCatalog=local
詳細請參考:
https://www.cnblogs.com/del88/p/6286887.html 方法3: 用local