Note for Maven 3 users: due to the changes in the reporting API, report inclusion does not work with Maven 3. See MPDF-41.
Since version 1.1, all Maven reports will be included by default in the generated PDF. You should configure the <reporting/> section of your POM similar than the site plugin
For instance, you could have the following:
<project> ... <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1.2</version> <reportSets> <reportSet> <reports> <report>project-team</report> ... </reports> </reportSet> </reportSets> </plugin> ... </plugins> </reporting> ... <project>
Having many reports increases hugely the build time, so it is recommended to select only the wanted reports to be included in the PDF. It is recommended to define a reporting profile in your pom, similar to the following:
<project> ... <profiles> <profile> <id>pdf</id> <reporting> <plugins> <plugin> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1.2</version> <reportSets> <reportSet> <reports> <report>cim</report> <!-- take too long time <report>dependencies</report> --> <report>dependency-convergence</report> <report>dependency-management</report> <!-- already present <report>index</report> --> <report>issue-tracking</report> <report>license</report> <report>mailing-list</report> <report>plugin-management</report> <report>plugins</report> <report>project-team</report> <report>scm</report> <report>summary</report> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> <build> <defaultGoal>pdf:pdf</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pdf-plugin</artifactId> <version>1.2</version> </plugin> </plugins> </build> </profile> ... </profiles> ... <project>
The Maven Project supports several reporting plugins. Unfortunately, some releases reporting plugins have known issues with the PDF plugin, mainly due to a wrong use of the Sink object in their implementation.
The following tables show reporting plugins which have been tested with the PDF plugin. The failed plugins have been fixed and deployed on https://repository.apache.org/content/repositories/snapshots, so you will be able to use them.
Note: fixing these reporting plugins is a work in progress. If you used a SNAPSHOT plugin which fails with the PDF plugin, you should fill a bug report in our issue tracker.
Reports | Release (2.1) | Snapshot (2.2-SNAPSHOT) |
---|---|---|
changelog:changelog | ||
changelog:dev-activity | ||
changelog:file-activity |
Reports | Release (2.1) | Snapshot (2.2-SNAPSHOT) |
---|---|---|
changes:changes-report | ||
changes:jira-report | ||
changes:trac-report |
Note: could take a lot of time.
Reports | Release (2.3) | Snapshot (2.4-SNAPSHOT) |
---|---|---|
checkstyle:checkstyle |
Reports | Release (2.1) | Snapshot (2.2-SNAPSHOT) |
---|---|---|
dependency:analyze-report |
Reports | Release (2.5) | Snapshot (2.5.1-SNAPSHOT) |
---|---|---|
plugin:report |
Reports | Release (2.4) | Snapshot (2.5-SNAPSHOT) |
---|---|---|
pmd:cpd | ||
pmd:pmd |
Note: dependencies report could take a lot of time.
Reports | Release (2.1.2) | Snapshot (2.2-SNAPSHOT) |
---|---|---|
project-info-reports:cim | ||
project-info-reports:dependencies | ||
project-info-reports:dependency-convergence | ||
project-info-reports:dependency-management | ||
project-info-reports:index | ||
project-info-reports:issue-tracking | ||
project-info-reports:license | ||
project-info-reports:mailing-list | ||
project-info-reports:plugin-management | ||
project-info-reports:plugins | ||
project-info-reports:project-team | ||
project-info-reports:scm | ||
project-info-reports:summary |
Reports | Release (2.4.3) | Snapshot (2.5-SNAPSHOT) |
---|---|---|
surefire-report:report |
The Mojo Project proposes several reporting plugins. Like the Maven project, some releases have known issues with the PDF plugin due to the Sink object uses.
The following tables show reporting plugins which have been tested with the PDF plugin. Some of them have been fixed and deployed on http://snapshots.repository.codehaus.org.
Note: these test tables are only for your information. If you find issues, please contact directly the mojo team
Reports | Release (2.2.2) | Snapshot (2.2.3-SNAPSHOT) |
---|---|---|
clirr:clirr |
Reports | Release (2.3) | Snapshot (2.4-SNAPSHOT) |
---|---|---|
cobertura:cobertura |
Reports | Release (1.0-alpha-2) | Snapshot (1.0-alpha-3-SNAPSHOT) |
---|---|---|
l10n:report |
Reports | Release (2.0) | Snapshot (2.1-SNAPSHOT) |
---|---|---|
javancss:report |