Friday, July 1, 2016

How to add an archetype in Maven project within Eclipse

Sometimes, you might want to access an archetype through Eclipse's wizard. But, unfortunately, when you try to do so, nothing happens.

So in order to fix that problem you need to go to Window > Preferences > Maven > Archetypes > Add Remote Catalog... then enter the following path : http://repo1.maven.org/maven2/archetype-catalog.xml into the Catalog File field. Then, hit OK. It's done, from now on you have access to your archetypes.