HowToDoInJava

  • Java 8
  • Regex
  • Concurrency
  • Best Practices
  • Spring Boot
  • JUnit5
  • Interview Questions

Import Maven Remote Archetype Catalogs in Eclipse

By Lokesh Gupta | Filed Under: 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 !!

About Lokesh Gupta

Founded HowToDoInJava.com in late 2012. I love computers, programming and solving problems everyday. A family guy with fun loving nature. You can find me on Facebook, Twitter and Google Plus.

Feedback, Discussion and Comments

  1. Deva

    January 10, 2019

    Thanks a lot, it worked well

    Reply
  2. shef

    August 8, 2018

    does not getting a window to choose the archetype of maven project in eclipse neon

    Reply
  3. Adilson

    May 9, 2018

    Thank you for sharing this in a very simple way.

    Reply
  4. Abhishek sharma

    December 26, 2017

    Yes This method works for me thanks a lot.

    Reply
  5. B.Sai Kumar

    December 13, 2017

    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
  6. Radha

    April 6, 2017

    Hi, I am trying to create a project using this archetype. But I keep getting this error.
    Any help is appreciated.

    Unable to create project from archetype [com.intuit.karate:karate-archetype:0.2.9 -> https://repo.maven.apache.org/maven2%5D
    The defined artifact is not an archetype

    Reply
  7. abhishek

    April 6, 2017

    can remote catalog hosted over https:// can be accessed.?

    Reply
  8. Vaibhav

    March 9, 2017

    Thanks worked fine 🙂

    Reply
  9. Ankith

    February 13, 2017

    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
    • Lokesh Gupta

      February 13, 2017

      Its HTTPS issue and purely your environment specific.

      Reply
    • Vani Bhat

      May 14, 2018

      Hi,

      I am also getting this error. How to resolve this proxy issue ?

      Reply
  10. shailesh singh

    May 17, 2016

    java.lang.nullPointerException while downloading????

    Reply
    • Ajit Kumar

      October 11, 2017

      plz help i’m also getting the same issue in mars2 ..

      Reply
  11. Mohit

    December 15, 2015

    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
    • Lokesh Gupta

      December 16, 2015

      It might be some proxy issue. Please try in home network where firewall is off.

      Reply
      • Ma silong

        September 8, 2017

        The firewall is off. But it stil show that remote catalog is empty.

        Reply

Ask Questions & Share Feedback Cancel reply

Your email address will not be published. Required fields are marked *

*Want to Post Code Snippets or XML content? Please use [java] ... [/java] tags otherwise code may not appear partially or even fully. e.g.
[java] 
public static void main (String[] args) {
...
}
[/java]

Search Tutorials

  • Email
  • Facebook
  • RSS
  • Twitter

Eclipse Tutorials

  • Eclipse – Import Remote Archetype
  • Eclipse – Quick Search Plugin
  • Eclipse – Display Non-english Chars
  • Eclipse – Increase Console Limit
  • Eclipse – Create Code Templates
  • Eclipse – Make Faster
  • Compile Program in Other Language
  • Compiler Error When Hiding Final Static Methods
  • “javax.servlet.http.HttpServlet” not found

Popular Tutorials

  • Java 8 Tutorial
  • Core Java Tutorial
  • Java Collections
  • Java Concurrency
  • Spring Boot Tutorial
  • Spring AOP Tutorial
  • Spring MVC Tutorial
  • Spring Security Tutorial
  • Hibernate Tutorial
  • Jersey Tutorial
  • Maven Tutorial
  • Log4j Tutorial
  • Regex Tutorial

Meta Links

  • Advertise
  • Contact Us
  • Privacy policy
  • About Me

Copyright © 2016 · HowToDoInjava.com · All Rights Reserved. | Sitemap