JavaGian java tutorial and java interview question and answer

JavaGian , Free Online Tutorials, JavaGian provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, ajax, core java, sql, python, php, c language etc. for beginners and professionals.

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.

.