Maven Simple Project Archetype
fr.ebruno.maven.archetypes:maven-archetype-simple:0.1.9-SNAPSHOT is an archetype which generates a simple Maven project:
To generate from the archetype :
mvn archetype:generate \
-DarchetypeGroupId=fr.ebruno.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-simple \
-DarchetypeVersion=0.1.9-SNAPSHOT
parameters can be passed directly :
mvn archetype:generate \
-DarchetypeGroupId=fr.ebruno.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-simple \
-DgroupId=demo.pkg \
-DartifactId=MyAppHelloWorld \
-Dversion=0.1.0-SNAPSHOT
The result can be compiled with maven
cd MyAppHelloWorld
mvn verify
and executed with maven :
mvn exec:java -Dexec.mainClass="demo.pkg.App"
or with java (beware no dependencies in the slim jar)
cd MyAppHelloWorld
java -cp target/MyAppHelloWorld-1.0-SNAPSHOT.jar demo.pkg.App
a web site can be generated in target/site/index.html
with :
mvn site