我創建一個Maven站點爲3級多模塊Maven項目,該項目的結構是這樣的:如何修復Maven Site中多模塊項目中的子模塊鏈接錯誤?
parent
child-a
child-b
我正在mvn site site:stage
Maven站點模塊鏈接的作品爲兒童一但對於嵌套的模塊child-b而言被破壞。 (兒童-B的鏈接不工作,如果我第一次點擊的鏈接孩子-A。)
這裏見自己: http://justinhrobbins.github.io/multi-module-site-report-test/site/0.0.1-SNAPSHOT/
我在我父POM如下:
<distributionManagement>
<site>
<id>site</id>
<name>site</name>
<url>scp://www.yourcompany.com/www/docs/project/</url>
</site>
</distributionManagement>
需要完成哪些工作才能使鏈接適用於此Maven網站報告中的所有項目模塊? (我知道<url>
不實,目前我希望它在工作階段)
我添加了一個簡單的測試案例項目Github上演示該問題: https://github.com/justinhrobbins/multi-module-site-report-test
編輯:我使用的是以下插件版本:
<maven.site.plugin.version>3.3</maven.site.plugin.version>
<maven.project.info.reports.plugin.version>2.7</maven.project.info.reports.plugin.version>