29
votes

In Eclipse with m2eclipse installed, when I choose

File > New > Project... > Maven > Maven Project

with

Use default Workspace location

and

Catalog: Nexus Indexer

selected, the following error message is showing up:

No archetypes currently available. The archetype list will refresh when the indexes finish updating.

Why does this error occur?

3

3 Answers

42
votes
7
votes

in this case you can use another solution, you need to configure a local ctalogue using eclipse :

1- suppose that you need to use mave catalogue : http://repo1.maven.org/maven2/archetype-catalog.xml

2- download from your web broser the file http://repo1.maven.org/maven2/archetype-catalog.xml and save it in ~/.m2/archetype-catalog.xml

3 now go to eclipse "Window-->Preferences-->maven-->Archetypes" then click the "Add Local catalogue" and set the ctalogue file to the ~/.m2/archetype-catalog.xml, save and exit

4- now go back to eclipse and try to create project using your new local catatlogue archetypes, it should work

0
votes

Updated remote catalog link: https://repo1.maven.org/maven2/archetype-catalog.xml

Either copy the link and add a remote archetype or download the XML file and go for a local archetype option and follow @sofiene-zaghdoudi 's solution.