Links in dashboard detailed reports are broken, if the directory a submodule was in during build does not match the artifact id.
Consider the following setup:
pom.xml
| – module1 |
| — pom.xml |
| — some java sources |
where main pom includes module1:
<modules>
<module>module1</module>
</modules>
but artifact id of the project in directory module1 is e.g. "dashboard_broken_link.module1"
<groupId>com.sdm.foo</groupId>
<artifactId>dashboard_broken_link.module1</artifactId>
Building a maven site and deploying it with mvn site:deploy will result in the following directory structure on the server:
| – dashboard-report.html |
| – dashboard-report-details.html |
| – dashboard_broken_link.module1 (directory) |
| – dashboard-report.html |
The link in when clicking on e.g. "Checkstyle Report Summary" and "Dashboard Broken Link Example Module1" will point to "/module1/dashboard-report.html#checkstyle" instead of "/dashboard_broken_link.module1/dashboard-report.html#checkstyle".
Seems to be a bug for me, or is it just something I am missing here?
Find a toy project included in the attachment.
could you give me the maven's version you used to make your build ?
I've had this problem before with directory's name and artifactId which are different but i've already corrected
Best regards
David