Fork me on GitHub

Usage

This archetype can create a simple Java Project ready for Continuous Integration (CI). Set your -DgithubAccount= and change -DgroupId and -DartifactId to match the new application ones.

mvn archetype:generate \
 -DarchetypeGroupId=fr.ebruno.maven.archetypes \
 -DarchetypeArtifactId=maven-archetype-withparent \
 -DarchetypeVersion=0.1.9-SNAPSHOT \
 -DgithubAccount=<YOURGITHUBACCOUNT> \
 -DgroupId=fr.univtln.bruno.demos \
 -DartifactId=myapp \
 -Dversion=1.0-SNAPSHOT

The application can simply be packaged without and with dependencies. The default main class of the manifest is defined (see pom.xml).

cd MyApp
# Compile, runs unit and integration tests (the shade plugin generate two artifacts) and package.
mvn verify
# Execution from Maven
mvn exec:java
# Execution as a uber jar
java -jar target/myapp-0.1.9-SNAPSHOT-withdependencies.jar

Artifacts can automatically be deployed to GitHub packages.

mvn deploy

A website can be automatically generated

mvn site

The website can be displayed in a local web server

mvn site:run

The website can be deployed to GitHub pages.

mvn compile
mvn site-deploy