Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleCreate new Project

First create a new project using the Doctype Add-on Archetype. The interface to use the archetype is simplified by the create model mojo. So we recommend to use the following command on the commandline. This reduces the number of parameters you have to specify to one (shortId), also it is recommended to also provide a name for the new project (projectName) and a description (projectDescription).

Code Block
languagetext
mvn doctype:create-model -DcreateExamples=false -DshortId=myshortid 
  -DprojectName="My Doctype Add-on" 
  -DprojectDescription="Description of my project."

Specify a short ID (only characters, digits allowed except as first char) and an optional project name and description (which is recommended). With that a project based on Maven for the model for the PDAC1 is created.

Version Box
since1.1

Since version 1.1 there is a shorter version for the default configuration shown in the example above.

Code Block
languagetext
mvn doctype:create-model -Default="myshortid | My Doctype Add-on | Description of my project." 

This will also skip the generation of example files.

Add the projectdoc models and then create the doctype add-on project and launch it in a Confluence server.

Code Block
languagetext
mvn clean package doctype:run

...