A maven archetype is used to create a new maven project having predefined folders and files.
Skeleton CCL Project
Maven Verification Project
cclunit-archetype generates a skeleton CCL project with the expected folder structure using the lastest maven plugins.
Once the project is generated
mvn clean compile -P<profile> to compile the sourcemvn clean compile test -P<profile> to compile the source and execute the unit testsmvn clean compile test site -P<profile> to compile the source, execute the unit tests and generate reportsWhile generating the project a series of prompts will be presented.
Enter to select the default value for any prompt that presents a default value.To generate the project
mvn archetype:generate -Dfilter=com.cerner.ccl.archetype:cclunit-archetype.1 to select the first/only item cclunit-archetype in the presented list of archetypes.Enter to select the highest version in the list of available versions.Y or Nwhen prompted to confirm the entries or start over.Maven will create a folder named <artifactId> and add the archetype contents into it.
Note that the starting directory does not really have to be empyt, but it must not contain a pom file.
<artifactId>, the behavior is not guaranteed except that
cclunit-maven-settings-check-archetype generates a mavenized CCL project used to verify if maven is properly configured .
Once the project is generated
mvn clean compile test -P<profile>If the project builds without errors, maven is properly configured for mavenize CCL projects, and otherwise, it is not.
To generate the project
mvn archetype:generate -Dfilter=com.cerner.ccl.archetype:cclunit-maven-settings-check-archetypeRefer to Skeleton CCL Project for guidance in answering the prompts.