Usage

  • Set up the POM as follows (set the uctool.version property value):
<properties>
  <uctool.version>set the corresponding uctool version here...</uctool.version>
</properties>
<build>
  <plugins>
    <plugin>
      <groupId>net.sf.uctool</groupId>
      <artifactId>uctool-maven-plugin</artifactId>
      <version>3.0.0</version>
      <executions>
        <execution>
          <id>extract-resources</id>
          <goals>
            <goal>extract-resources</goal>
          </goals>
        </execution>
        <execution>
          <id>use-cases</id>
          <goals>
            <goal>use-cases</goal>
          </goals>
        </execution>
      </executions>
      <dependencies>
        <!-- Use Saxon as XSLT processor, templates are XSLT 2.0 -->
        <dependency>
          <groupId>net.sf.saxon</groupId>
          <artifactId>saxon</artifactId>
          <version>8.7</version>
        </dependency>
      </dependencies>
    </plugin>
  </plugins>
</build>
<dependencies>
  <dependency>
    <groupId>net.sf.uctool</groupId>
    <artifactId>uctool</artifactId>
    <version>${uctool.version}</version>
  </dependency>
</dependencies>
  • Put the XML source files with use cases into src/main/ucs.
  • Run mvn install and open target/site/ucs/index.html file.