Julian
Julian

Reputation: 15

I created a custom archetype for maven in Intellij, but want to delete it

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

Upvotes: 0

Views: 1467

Answers (3)

Druckles
Druckles

Reputation: 3782

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

Upvotes: 1

Chiara Rovere
Chiara Rovere

Reputation: 11

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.

Upvotes: 1

chriga
chriga

Reputation: 816

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

Upvotes: 2

Related Questions