英文:
I created a custom archetype for maven in Intellij, but want to delete it
问题
所以我试图让生活变得更轻松,但行动匆忙,做错了一些事情。现在我想删除自定义原型,但不知道如何操作。
我尝试在 .m2 文件和 maven 文件中查找。
英文:
So i tried to make life easier for myself but did it to hastily and did something wrong. Now i want to delete the custom archetype but don't know how.
i tried looking in the .m2 file and in the maven file
答案1
得分: 2
自定义原型位于文件UserArchetypes.xml
中。您可以编辑该文件以删除自定义原型。
该文件可在以下位置找到:
- Linux
~/.IntelliJIdea10/system/Maven/Indices/UserArchetypes.xml
- Mac
~/Library/Caches/IntelliJIdea12/Maven/Indices/UserArchetypes.xml
- Windows
C:\Users\<user>\.IdeaIC2017\system\Maven\Indices\UserArchetypes.xml
英文:
Custom archetypes are located in the file UserArchetypes.xml
. You can edit the file to delete the custom archetype.
The file can be found at
- Linux
~/.IntelliJIdea10/system/Maven/Indices/UserArchetypes.xml
- Mac
~/Library/Caches/IntelliJIdea12/Maven/Indices/UserArchetypes.xml
- Windows
C:\Users\ \<user> \\.IdeaIC2017\system\Maven\Indices\UserArchetypes.xml
答案2
得分: 1
关于 'Ubuntu 20.04.1 LTS' 和 'IntelliJ IDEA 2020.2.2',该文件位于 ~/.cache/JetBrains/IdeaIC2020.2/Maven/Indices/UserArchetypes.xml
。在我的情况下,我曾经因为寻找不存在的 ~/.IntelliJIdea10
或类似的文件而感到有些困惑。
英文:
For 'Ubuntu 20.04.1 LTS' and 'IntellJ IDEA 2020.2.2' the file is ~/.cache/JetBrains/IdeaIC2020.2/Maven/Indices/UserArchetypes.xml
. I got a little bit crazy looking for ~/.IntelliJIdea10
or similar that do not exists, in my case.
答案3
得分: 1
对于 Windows 10 及更高版本的 IntelliJ,Maven 文件夹位于 AppData/Local
,例如:
C:\Users\<USER>\AppData\Local\JetBrains\IntelliJIdea2020.3\Maven\Indices\UserArchetypes.xml
英文:
For Windows 10 and more recent versions of IntelliJ, the Maven folder is located in AppData/Local
, e.g.:
C:\Users\<USER>\AppData\Local\JetBrains\IntelliJIdea2020.3\Maven\Indices\UserArchetypes.xml
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论