Eclipse – Import Maven Remote Archetype Catalogs

This tutorial gives easy instructions for importing maven remote archetype catalogs in eclipse to give you a head start in configuring the project. Using archetype automatically import all basic runtime dependencies and configure the project with the most basic configuration you can use to build hello world applications within minutes.

Step 1: Open Maven Preferences in Eclipse

Go to Windows -> Preferences -> Maven -> Archetypes.

Maven archetype option in eclipse
Maven archetype option in eclipse

Step 2: Add Remote Catalog File

Click on Add Remote Catalog button. Fill in the catalog file as “http://repo1.maven.org/maven2/archetype-catalog.xml” and some custom descriptions.

Fill Archetype URL and name
Fill Archetype URL and name

Click the OK button. You are done.

Step 3: Verify Remote Archetypes

To verify that you can now access to all archetypes, create a new maven project.

Select the new custom catalog you created.

Jersey remote archetypesJersey remote archetypes
Jersey remote archetypes

In first time, it will take a few moments to gather all the archetypes. You can see the progress at the very bottom right of the IDE. When it’s done, you should be able to see the archetypes.

Fill group id and artifact id for your project.

Fill group id and artifact id
Fill group id and artifact id

Click on OK to create the project. You will see the new project create on your workspace with all dependencies and basic configurations already done.

New maven project with auto configuration
New maven project with auto configuration

Drop me your questions if you face any issues in any step.

Happy Learning !!

Comments

Subscribe
Notify of
guest
26 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.

Our Blogs

REST API Tutorial

Dark Mode

Dark Mode