No archetypes currently available. The archetype l

2019-03-08 05:41发布

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?

2条回答
叼着烟拽天下
2楼-- · 2019-03-08 06:13

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

查看更多
做自己的国王
3楼-- · 2019-03-08 06:20

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

查看更多
登录 后发表回答