Archetype Plugin

The archetype plugin should be used to generate new equanda project from template.

It can be executed by the following command (all on one line) :


mvn equanda:archetype
-DgroupId=com.mycompany -DartifactId=example
-DarchetypeVersion=0.9 -DarchetypeGroupId=org.equanda -DarchetypeArtifactId=equanda-maven-plugin

All the parameters on the last line are used internally by maven.

The other parameters can either be specified on the commandline using the "-Dkey=value" syntax, or you can put them in a file called "equanda-project.properties". This file itself can be changed by using something like "-DpropertiesFile=myprops.properties".

Possible parameters (those in bold are required) are :

  • groupId : project group id
  • artifactId : project base artifact id
  • archetypeVersion : equanda archetype plugin version
  • archetypeGroupId : equanda archetype plugin group id, has to be "org.equanda"
  • archetypeArtifactId : equanda archetype plugin artifact id, has to be "equanda-maven-plugin"
  • basedir : base project directory (default is current directory)
  • remoteRepositories : remote repositories, comma separated values
  • packageName : default java package, defaults to the "groupId" value
  • version : new project version (default is "1.0-SNAPSHOT")

For details see Maven Archetype Plugin Page.