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

守給你的承諾、 提交于 2019-12-03 02:01:38

问题


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?


回答1:


I had same problem and it was solved by adding a remote catalog: http://repo1.maven.org/maven2/archetype-catalog.xml

This solution i found at : http://jira.talendforge.org/secure/attachment/36787/DeveloperGuide-Feedback.pdf




回答2:


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



来源:https://stackoverflow.com/questions/10612599/no-archetypes-currently-available-the-archetype-list-will-refresh-when-the-inde

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!