You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

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 fix the essential information that is relevant for the project.

Prerequisites

The project has been created using the Doctype Archtetype. See Create a new Doctype Add-on for details.

Add Doctype Descriptor

The folder

src/main/resources/projectdoc-models

contains all descriptors. Descriptors for doctypes are stored in

src/main/resources/projectdoc-models/descriptors

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

mvn doctype:generate

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.

  • No labels