Skip to content

nemethi/kickstart-archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kickstart-archetype

This is a Maven archetype based on the Maven Quickstart Archetype. Apart from adding a sample Java file and test file it also includes:

  • the Maven Wrapper (without the JAR)
  • a .gitignore file
  • a configured Jacoco Plugin for test coverage
  • my frequently used test dependencies
  • an optionally configured Maven Jar Plugin for creating executable JARs
  • an optionally configured Maven Assembly Plugin for creating executable JARs with all the necessary dependencies

Usage

If the archetype is not in your local Maven repository, clone the Git repo then run mvn install. To create a project from the archetype, run:

mvn archetype:generate \
-DarchetypeGroupId=nemethi \
-DarchetypeArtifactId=kickstart \
-DarchetypeVersion=3.0.2

You may specify -DgroupId=<your-group-id>, -DartifactId=<your-artifact-id> and -Dversion=<your-version> but you can edit the default values while generating the project. With the -DexecutableJar=<yes|no> property you may configure whether your project's JAR should be executable. With the -DfatJar=<yes|no> property you may configure whether your project's JAR should include all necessary dependencies and be executable.

The generated project's Java version is set to 11 by default. You can change this with the -DjavaVersion=<version> property. The generated project will use JUnit 5 if the version is set to 9 or higher.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

My custom Maven archetype

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages