A small collection of resources to get new user started to create their doctype add-ons for the projectdoc Toolbox.
Get Started!
To get started follow this steps.
Although there is an archetype to create the project, the creation process is controlled by the Doctype Maven Plugin's create goal.
Configure Project Settings
The project settings allow to specify defaults that makes the creation of new doctype add-on projects much easier.
You may skip this step if you are searching for an overview on what the Doctype Maven Plugin offers. But you certainly want to come back to this topic once you start using the doctype:create goal.
Copy the following content in a file names project-settings.xml to your Maven folder (.m2) in your user home directory.
Deploy projectdoc Artifacts to local Artifact Repository
There are some prerequisites you need to check to get going. This involves the configuration of your access to dependencies declared in the POM of the generated project.
Create Project
To create a new project (with some sample files) run:
Since there are sample files in the new project, you can now generate blueprint files based on the example files.
Note that there is now rollback! If you run the following command to see the first example, the information in the descriptors will alter a number of files in the project (which is not in the target, but the source folder).
You probably need to start a new project (with -DcreateExamples=false) if you want to exclude the samples.
mvn doctype:generate
Then start your Confluence server locally to test the add-on.
atlas-debug
Usage Scenarios
The Usage page lists typical usage scenarios. Pick the ones you are interested in.
Remember: create creates a new project, generate generates files and applies changes based on your descriptors. So to generate blueprint files based on your descriptors type from within your project:
mvn doctype:generate
This will skip descriptor files that have already been generated.
In projectdoc model descriptors you'll find information on how to write descriptors for the add-on, the spaces, and the doctypes. There is also a link to XML schema files (XSD) that can be installed into XML editors.