Skip to content

A maven archetype for generating a Java project with log4j2 pre configured

Notifications You must be signed in to change notification settings

SingingBush/quick-java-archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Java Archetype

Maven Central Java CI

Using the latest release (from maven central)

mvn archetype:generate \
    -DarchetypeGroupId=com.singingbush \
    -DarchetypeArtifactId=quick-java-archetype \
    -DarchetypeVersion=1.2.0 \
    -DgroupId=<my.groupid> \
    -DartifactId=<my-artifactId> \
    -DjavaVersion=11

The javaVersion option can be 1.8, 11, 17, or 21. The default is Java 11. If the JDK version supports JPMS then a module-info.java will be created in the generated project.

The configureGitHubAction option (since 1.2.0) can be used to generate a .github/ directory in the project with CI and Dependabot pre-configured.

Building from source and using latest snapshot (local install)

When building a release Java 8 should be used for maximum compatibility. However, as JDK 11 is required for the integration tests releases (either maven install or maven deploy) should use the skip tests property:

JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk mvn clean install -DskipTests=true -Dmaven.test.skip=true

Then when using the locally installed build make sure to use -DarchetypeCatalog=local:

mvn archetype:generate \
    -DarchetypeCatalog=local
    -DarchetypeGroupId=com.singingbush \
    -DarchetypeArtifactId=quick-java-archetype \
    -DarchetypeVersion=1.2.1-SNAPSHOT \
    -DgroupId=<my.groupid> \
    -DartifactId=<my-artifactId> \
    -DjavaVersion=11

About

A maven archetype for generating a Java project with log4j2 pre configured

Resources

Stars

Watchers

Forks

Packages

No packages published