Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.6
-
Fix Version/s: None
-
Labels:None
-
Environment:HideApache Maven 3.0.1 (r1038046; 2010-11-23 11:58:32+0100)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-27-generic" arch: "i386" Family: "unix"ShowApache Maven 3.0.1 (r1038046; 2010-11-23 11:58:32+0100) Java version: 1.6.0_20 Java home: /usr/lib/jvm/java-6-openjdk/jre Default locale: en_GB, platform encoding: UTF-8 OS name: "linux" version: "2.6.32-27-generic" arch: "i386" Family: "unix"
-
Number of attachments :
Description
When the site reports are created with Maven 3, the Checkstyle plugin doesn't generate the links to the Source Xref pages, when the JXR Plugin hasn't been executed before.
The plugin looks for the xrefLocation directory and if it doesn't exist, it checks if the JXR plugin is configured for the project (see http://maven.apache.org/plugins/maven-checkstyle-plugin/xref/org/apache/maven/plugin/checkstyle/CheckstyleReport.html#670). To properly generate the Xref links when the report is created with Maven 3, the plugin should also check the reportPlugins paramerter of the Site plugin configuration.
Issue Links
- is related to
-
SUREFIRE-683
Xref link generation regression with Maven 3
-
- relates to
-
MPMD-128
Xref link generation regression with Maven 3
-
-
MCLIRR-38
Xref link generation not working when using the 'reportPlugins' parameter of the site plugin instead of the 'reporting' section of the pom.
-
-
JXR-91
Javadoc link generation not working when using the 'reportPlugins' parameter of the site plugin instead of the 'reporting' section of the pom.
-
-
MFINDBUGS-145
Xref link generation not working when using the 'reportPlugins' parameter of the site plugin instead of the 'reporting' section of the pom.
-
As there's no reliable order for the report plugin execution, I can't provide a sample that surely demonstrates the problem. To test, You might change the order of the Checkstyle and the JXR plugin in the POM.