How to choose the correct Maven Archetype for my project or application?

If you are new to using Maven for your builds and deployment process and you are just starting out learning it via various online tutorials then you will eventually run into where you try to create a project or an application using Maven. At this point you will want to run mvn archetype:generate whereby Maven will go through and list out several archetypes to choose from. In the version of Maven I am using (3.3.9) Maven listed out 1734 archetypes to choose from.

The problem

As newer versions of Maven are released the number of Maven Archetypes that you have to choose from are growing rapidly. What may be archetype #269 in one tutorial will not be the same archetype number in another tutorial. Additionally, going through the list of 1500+ archetypes can be tedious.

A Solution

Fortunately the is a website where you can search for archetypes at https://maven-repository.com/

Additionally as of version 3.3.9 I have listed below the basic archetypes that most tutorials will have you create:

Archetype ID

Local/Remote

Group

Description

888 remote org.apache.maven.archetypes:maven-archetype-archetype An archetype which contains a sample archetype
889 remote  org.apache.maven.archetypes:maven-archetype-j2ee-simple  An archetype which contains a simplifed sample J2EE application.
891  remote  org.apache.maven.archetypes:maven-archetype-mojo  An archetype which contains a sample a sample Maven plugin.
892  remote  org.apache.maven.archetypes:maven-archetype-plugin  An archetype which contains a sample Maven plugin
 893  remote  org.apache.maven.archetypes:maven-archetype-plugin-sit  An archetype which contains a sample Maven plugin site. This archetype can be layered upon an
existing Maven plugin project
896  remote org.apache.maven.archetypes:maven-archetype-quickstart An archetype which contains a sample Maven project.
 897  remote  org.apache.maven.archetypes:maven-archetype-site  An archetype which contains a sample Maven site which demonstrates some of the supported document types like
APT, XDoc, and FML and demonstrates how to i18n your site. This archetype can be layered
upon an existing Maven project.
898  remote  org.apache.maven.archetypes:maven-archetype-site-simple  An archetype which contains a sample Maven site.
 899  remote  org.apache.maven.archetypes:maven-archetype-webapp  An archetype which contains a sample Maven Webapp project.

 

One thought on “How to choose the correct Maven Archetype for my project or application?

  1. Hi would you mind stating which blog platform you’re using?
    I’m looking to start my own blog soon but I’m having a difficult time choosing
    between BlogEngine/Wordpress/B2evolution and Drupal. The reason I
    ask is because your design seems different then most blogs and I’m looking for something unique.

    P.S Apologies for being off-topic but I had to ask!

Leave a Reply

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