用户可以在IntelliJ Idea中添加Maven Archetype,但是IntelliJ Idea中并没有提供删除的方法。下面介绍一种通过修改配置文件的方法来实现删除。
查看Archetype
查看配置文件
位置
mac
~/Library/Caches/IntelliJIdea2016.2/Maven/Indices
linux
~/.IntelliJIdea2016.2/system/Maven/Indices/UserArchetypes.xml
内容
删除Archetype
删除UserArchetypes.xml中的
<archetype groupId="test" artifactId="test" version="0.9" />
- 重启IntelliJ Idea。
参考内容
http://stackoverflow.com/questions/4361567/where-are-added-archetypes-stored-in-intellij