JBoss.orgCommunity Documentation
JBoss Tattletale integrates with Apache Maven such that you can generate the reports directly from your build environment.
To be able to use the Tattletale Maven plugin in your Maven project, you will have to add the following plugin declaration in the pom.xml of your project:
<build> <plugins> <plugin> <groupId>org.jboss.tattletale</groupId> <artifactId>tattletale-maven</artifactId> <!-- The version of the plugin you want to use --> <version>1.1.0.Final</version> <executions> <execution> <goals> <goal>report</goal> </goals> </execution> </executions> <configuration> <!-- This is the location which will be scanned for generating tattletale reports --> <source>/absolutepath/to/source/dir</source> <!-- This is where the reports will be generated --> <destination>/absolute/path/to/reports/dir</destination> </configuration> </plugin> </plugins> </build>
Usage:
Once you have configured your project's pom.xml to include the tattletale-maven plugin, as explained earlier, you can generate the report by running the package goal on your projectmvn clean package
Table 5.1. Apache Maven: report
Key | Value |
---|---|
source |
The directory that contains the Java archives. Multiple directories can be
scanned by separating each with the File.pathSeparator character - f.ex.
dir1:dir2 on Un*x.
Default: Current directory |
destination |
The directory where the reports should be generated
Default: Current directory |
configuration |
Path to the configuration file
Default: No value |
filter |
Path to the filter file
Default: No value |
reports |
Contains nested report elements of which reports that should be generated.
All reports can be selected by specifying "*". The following reports are supported:
Default: All reports |
classloader |
Specifies which classloader structure that should be used when scanning the archives.
Can be one of the following:
Default: |
profiles |
Contains nested profile elements of profiles to resolve against. All profiles can
be selected by specifying "*". The following profiles are supported:
Default: |
excludes |
Contains nested exclude elements of directories or files that should be excluded from the scan. F.ex.
Default: Empty list |
blacklisted |
Contains nested blacklist elements of black listed classes or packages. F.ex.
<blacklist>com.mycompany.forinternaluseonly</blacklist>
<blacklist>com.partner.forinternaluseonly</blacklist>
Default: Empty list |
failOnInfo |
Fail the build if a failed INFO report is found
Default: |
failOnWarn |
Fail the build if a failed WARN report is found
Default: |
failOnError |
Fail the build if a failed ERROR report is found
Default: |
deleteOutputDirectory |
Should the output directory be deleted
Default: |
scan |
A comma separated list of file extensions that should be scanned
Default: |
Copyright © 2011 Red Hat Middleware