Add Maven Archetype Catalogs to Eclipse

            Add Maven Archetype Catalogs to Eclipse

 

After you have installed m2eclipse, you can go through the menu [File]-[New]-[Project…],

Select the Maven-Maven Project among them, and generate a simple project framework according to the project archetype or template archetype provided by Maven.

But if you want to generate the struts2 project framework, you may not find the corresponding archetype

The solution is to add an archetype or template catalog, select [Window]-[Preferences...]-[Maven]-[archetypes], select the [Add Remote Catalog...] button, and enter the content shown in the figure in the opened window:
Catalog File: http://repo1.maven.org/maven2/archetype-catalog.xml

description: Name whatever you want

Click [Verify...] to check whether the file is feasible. As shown in the figure above, the number of archetypes found is 2227.
Click【OK】to exit the window.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325984306&siteId=291194637