Search code examples
mavenmaven-archetype

How to remove a manual archetype from eclipse


I have created this for spring framework

Archetype Group Id: co.ntier Archetype Artifact Id: spring-mvc-archetype Archetype Version: 1.0.2 Repository URL: https://mvnrepository.com/artifact/co.ntier/spring-mvc-archetype/1.0.2

And I am getting the following error using this archetype:

Unable to create project from archetype [co.ntier:spring-mvc-archetype:1.0.2 -> ]
The defined artifact is not an archetype

How do I remove a manual archetype from Eclipse?


Solution

  • On Windows under c:\users{user}.m2 there is a file named archetype-catalog.xml. Open it remove the element for the archetype you want to delete and restart Eclipse.