The project is a Maven archetype for Java console application.
- JDK 17 (tested with Java 17)
- Maven 3 (tested with 3.8.5)
To install the archetype in your local repository execute the following commands:
git clone git@github.com:edwarddn/simple-maven-archetype.git
cd simple-maven-archetype
mvn clean install
Create a new empty directory for your project and navigate into it and then run:
mvn archetype:generate \
-DarchetypeGroupId=br.com.edward.archetypes \
-DarchetypeArtifactId=simple-maven-archetype \
-DarchetypeVersion=1.0.0 \
-DgroupId=br.com.myname.myproject \
-DartifactId=my-project-name \
-Dversion=0.0.1-SNAPSHOT
- Create new project
File > New > Project
- Click Maven on the left hand side of the new project dialog
- Check
Create from archetype
- Click the
Add Archetype
button - Set
Group Id
tobr.com.edward.archetypes
- Set
Artifact Id
tosimple-maven-archetype
- Set
Version
to1.0.0
- Click next and create the project