HowToDoInJava

  • Python
  • Java
  • Spring Boot
  • Dark Mode
Home / Eclipse / Archetype setup

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?

Let us know if you liked the post. That’s the only way we can improve.
TwitterFacebookLinkedInRedditPocket

About Lokesh Gupta

A family guy with fun loving nature. Love computers, programming and solving everyday problems. Find me on Facebook and Twitter.

Feedback, Discussion and Comments

  1. Poonam Sharma

    February 19, 2020

    “Remote server is empty” is displayed after filling the catalog file and descriptor field

    • Pritam Dhotre

      April 16, 2020

      Add https:// instead of http://

  2. hind

    February 15, 2020

    The required property “package” is not set.
    This is the message, what should I do?

  3. sanath ralaya

    November 19, 2019

    thank you sir, it worked for me

  4. Abhishek

    August 28, 2019

    Hello,

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

    what could be the reason?
    I am trying in Eclipse

    • hind

      February 15, 2020

      This makes me crazy, too

    • gaurav sahu

      March 29, 2020

      use https:// instead pf http:// worked for me when I updated it.

      • Pritam Dhotre

        April 16, 2020

        now it is working

  5. Jyoti kumari

    March 9, 2019

    Thanks

    It worked.

  6. Deva

    January 10, 2019

    Thanks a lot, it worked well

  7. shef

    August 8, 2018

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

  8. Adilson

    May 9, 2018

    Thank you for sharing this in a very simple way.

  9. Abhishek sharma

    December 26, 2017

    Yes This method works for me thanks a lot.

  10. 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?????

  11. 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/ ]
    The defined artifact is not an archetype

  12. abhishek

    April 6, 2017

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

  13. Vaibhav

    March 9, 2017

    Thanks worked fine πŸ™‚

  14. 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

    • Lokesh Gupta

      February 13, 2017

      Its HTTPS issue and purely your environment specific.

    • Vani Bhat

      May 14, 2018

      Hi,

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

      • Asmaa

        January 23, 2020

        https is working for me πŸ˜€ πŸ˜€ thanks thanks

  15. shailesh singh

    May 17, 2016

    java.lang.nullPointerException while downloading????

    • Ajit Kumar

      October 11, 2017

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

  16. 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.

    • Lokesh Gupta

      December 16, 2015

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

      • Ma silong

        September 8, 2017

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

Comments are closed on this article!

Search Tutorials

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

Meta Links

  • About Me
  • Contact Us
  • Privacy policy
  • Advertise
  • Guest and Sponsored Posts

Recommended Reading

  • 10 Life Lessons
  • Secure Hash Algorithms
  • How Web Servers work?
  • How Java I/O Works Internally?
  • Best Way to Learn Java
  • Java Best Practices Guide
  • Microservices Tutorial
  • REST API Tutorial
  • How to Start New Blog

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

  • Sealed Classes and Interfaces