The site:trace goal is targeted to generate traceability matrix report in the format compatible with Maven site. This report will be shown among other project reports in the Maven site
Generally it scans the issue tracking system (currently it's GitHub issuer tracker) and finds all issues with specified labels. The output will contain the list of issues groupped by milestone they are assigned to with all references to the original resources.
In order to generate traceability matrix report we should specify the following options:
As it's seen from the above section there is some information which is normally not shared. Mostly it's about GitHub user and password information. These parameters can also be defined via the following properties:
So, you can run Maven with the following options:
mvn <list of goals> -Dissueget.user=<GitHub user> -Dissueget.password=<GitHub password>
But normally it's inconvenient to explicitly specify the user credentials. In order to specify some default values you can modify %MAVEN_HOME%/conf/settings.xml file. The below example shows how to set default values for the default profile:
<profiles> <profile> <id>default</id> .... <properties> .... <issueget.user>my-login</issueget.user> <issueget.password>my-user-password</issueget.password> .... </properties> </profile> </profiles>
The sample pom.xml fragment shows how to generate such report:
<reporting> <plugins> <plugin> <groupId>com.github.mkolisnyk</groupId> <artifactId>sirius-maven-plugin</artifactId> <version>1.2-SNAPSHOT</version> <configuration> <repository>Sirius</repository> <groups>System</groups> <outputType>mvn-trace</outputType> <outputLocation>target/site</outputLocation> </configuration> <reportSets> <reportSet> <configuration /> <reports> <report>trace</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting>
So, in order to get this report generated you should run Maven command like:
mvn sirius-maven-plugin:trace