You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 7
Next »
Shows how to add a new doctype to an existing project.
The information architecture is a moving target. New requirements can call for a new document type (template) to make it easier for team members to write down the essential information that is relevant for the project.
Add Doctype Descriptor
The folder
src/main/resources/projectdoc-models
contains all descriptors. Descriptors for doctypes are stored in
src/main/resources/projectdoc-models/doctypes
To add a new doctype, simply add a new descriptor file. The plugin will automatically find all descriptors in the next run and create the corresponding blueprint files.
Run Generation Process
The generation process is run from within the project (that is from the base folder that contains the pom.xml
file) using
All information is derived from the configuration in the pom.xml
file that has been created by the Doctypes Archetype.
<plugin>
<groupId>de.smartics.maven.plugin</groupId>
<artifactId>doctype-maven-plugin</artifactId>
<version>1.9.4</version>
<executions>
<execution>
<id>doctype</id>
<goals>
<goal>generate</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
<configuration>
<shortId>myshortid</shortId>
</configuration>
</plugin>
In create mode (default), already existing templates will not be overridden.
Resources
More usage scenarios:
- Create a new Doctype Model
- Shows how users can create their own model project for their doctypes. This involves creating a new project using a Maven Archtetype and then add blueprint based on model descriptors.
- Create a new Doctype Add-on
- Shows how users can create their own add-on project for their doctypes. This involves creating a new project using a Maven Archtetype and then add blueprint based on model descriptors.
- Add new Doctype
- Shows how to add a new doctype to an existing project.
- Update Doctype
- Shows how to update an existing doctype.