Import Maven Remote Archetype Catalogs in Eclipse

This tutorial gives easy instructions for importing maven remote archetype catalogs in eclipse to give you head start in configuring the project. Using archetype automatically import all basic runtime dependencies and configure the project with most basic configuration which you can directly 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 the catalog file as “http://repo1.maven.org/maven2/archetype-catalog.xml” and some custom description.

Fill Archetype URL and name
Fill Archetype URL and name

Click 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 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 issue in any step.

Happy Learning !!

Was this post helpful?

Join 7000+ Fellow Programmers

Subscribe to get new post notifications, industry updates, best practices, and much more. Directly into your inbox, for free.

26 thoughts on “Import Maven Remote Archetype Catalogs in Eclipse”

  1. Hello,

    I followed the steps but still, jersey is not coming in the list πŸ™

    what could be the reason?
    I am trying in Eclipse

    Reply
  2. Unable to create project from archetype.
    This is the error I have been getting when creating a new maven project.
    I tried it in many ways to solve the error.
    1.Changing the proxy in settings.xml file
    2.Using remote catalog in Eclipse
    3.I tried of creating a maven project through command line even there the project is BUILD FAILURE.

    Please anyone help me in solving this problem?????

    Reply
  3. Archetype Catalogs list is coming empty. Could not able to create maven project :- error

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0
    Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repo.maven.apache.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central https://repo.maven.apache.org/maven2/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://repo.maven.apache.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central https://repo.maven.apache.org/maven2/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    Reply
  4. I am trying to do it but when i am adding the remote catalog and click ok and follow the same steps it is showing nothing. Also if i verify it is showing that remote catalog is empty.

    Reply

Leave a Comment

HowToDoInJava

A blog about Java and its related technologies, the best practices, algorithms, interview questions, scripting languages, and Python.