How to fix broken sub-module links in Maven Site for multi-module project? - Stack Overflow
was able to fix this issue by adding a <url>
element to the parent pom. I don't understand why that would fix it though.
Prior to adding the <url>
element I saw this in the log after running mvn site site:stage
[WARNING] No project URL defined - decoration links will not be relativized!
After adding the element and rerunning the Maven command, the log now shows this:
[INFO] Relativizing decoration links with respect to project URL:
The module links in the Maven site report are now working.
The master branch of the sample github project has been updated with the solution
https://github.com/justinhrobbins/multi-module-site-report-test
More info on the purpose of the <url>
element can be found here: https://maven.apache.org/plugins/maven-site-plugin/faq.html#Use_of_url
Read full article from How to fix broken sub-module links in Maven Site for multi-module project? - Stack Overflow
No comments:
Post a Comment