我在Intellij中创建了一个自定义的Maven原型,但想要删除它。

huangapple go评论71阅读模式
英文:

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\ \&lt;user&gt; \\.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\&lt;USER&gt;\AppData\Local\JetBrains\IntelliJIdea2020.3\Maven\Indices\UserArchetypes.xml

huangapple
  • 本文由 发表于 2020年9月10日 21:24:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/63830685.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定