SETUP NEW MAVEN PROJECT FROM ARCHETYPE

You can quickly set up the structure for a new Lily-based project by executing the following archetype. This command will allow to change some settings, such as the artifactId. It will then create a subdirectory named after this artifactId and put all files below that.

mvn archetype:generate \
  -DarchetypeGroupId=org.lilyproject \
  -DarchetypeArtifactId=lily-archetype-basic \
  -DarchetypeVersion=1.2.1 \
  -DarchetypeRepository=http://lilyproject.org/maven/maven2/deploy/

If you are using a Lily version whose artifacts are not deployed in Lily's Maven repository, you can change the pointer to the repository as follows: -DarchetypeRepository=file:///path_to_lily_home/lib

Before making any changes to it, you might want to verify that it compiles by changing to the created directory and executing:

mvn install