Thursday 20 August 2015

Add new maven archetype in eclipse

In this post, I am going to explain how to add maven archetype in eclipse.

Step 1: Open Eclipse. Go to File -> New -> Other
Step 2: Select Maven -> Maven Project, press Next.

Step 3: Use default options and press next.
Step 4: Click on “Add Archetype” button.
Here I want to add jersey-quickstart-webapp. Following is the maven dependency for jersey-quickstart-webapp.

<dependency>
         <groupId>org.glassfish.jersey.archetypes</groupId>
         <artifactId>jersey-quickstart-webapp</artifactId>
         <version>2.21</version>
</dependency>

Once you click on “Add Archetype” button, it opens window like below.

Add group id, artifact id, version, from above dependency and press OK.

Now if you filter for jersey, it shows newly added jersey archetype.


Select Jersey archetype and press Next.

Add groupid, artifactid, press Finish.




Previous                                                    Next                                                    Home

3 comments: