我正在为一个结构如下的 3 级多模块 Maven 项目创建一个 Maven 站点:
parent
child-a
child-b
我在跑步mvn site site:stage
Maven 站点模块链接适用于 child-a,但对于嵌套模块 child-b 无效。(如果我首先单击指向 child-a 的链接,则指向 child-b 的链接确实有效。)
在这里自己看看: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>