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> <configuration> <outputDirectory>target/generated-resources/swid/com.labs64</outputDirectory> <encoding>UTF-8</encoding> <extension>xml</extension> <entitlement_required>true</entitlement_required> <product_title>Maven Plugin :: SoftWare IDentification (SWID) Tags Generator</product_title> <software_creator> <name>Labs64</name> <regid>regid.2010-04.com.labs64</regid> </software_creator> <software_licensor> <name>Labs64</name> <regid>regid.2010-04.com.labs64</regid> </software_licensor> <software_id> <unique_id>NLIC</unique_id> <tag_creator_regid>regid.2010-04.com.labs64</tag_creator_regid> </software_id> <tag_creator> <name>Labs64</name> <regid>regid.2010-04.com.labs64</regid> </tag_creator> </configuration> </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.