Fork me on GitHub

Generate SWID Tags :: Basic Example

This example shows how to configure the generate goal for basic usage.

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>com.labs64.mojo</groupId>
        <artifactId>swid-maven-plugin</artifactId>
        <version>0.1.0</version>
        <executions>
          <execution>
            <id>generate</id>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
    ...
  </build>
  ...
</project>

For the generate goal, SWID Tags will by default be created in the directory target/generated-resources/swid. This can be configured using the outputDirectory parameter.