Skip to content

Files

Latest commit

8113ac2 · Feb 10, 2021

History

History
44 lines (32 loc) · 1.35 KB

File metadata and controls

44 lines (32 loc) · 1.35 KB

Elles HackerRank Quickstart Archetpye

Summary

The project contains a customized Maven archetype (Java8, Junit5) which I use as template for new Java projects for HackerRank.com challenges.

Installation

To install the archetype in your local maven repository execute the following commands:

    git clone https://github.com/ellevaoche/Elles-HackerRank-Quickstart-Archetpye.git
    cd hackerrank-quickstart-archetype
    mvn clean install

Create a project based on my Archetype

To generate a project from the custom archetype use one of the following methods:

Interactive mode

mvn archetype:generate \
    -DarchetypeGroupId=com.hackerrank \
    -DarchetypeArtifactId=elle-hackerrank-quickstart-archetype \
    -DarchetypeVersion=1.0.0-SNAPSHOT \

Non-Interactive mode

mvn archetype:generate \
    -DinteractiveMode=false \
    -DarchetypeGroupId=com.hackerrank \
    -DarchetypeArtifactId=elle-hackerrank-quickstart-archetype \
    -DarchetypeVersion=1.0.0-SNAPSHOT \
    -DgroupId=[myCustom.groupid] \
    -DartifactId=[myCustomArtifactId] \
    -Dversion=[myCustomVersion]