[英]maven multiple modules reference through mvn site
這是我的項目的結構:
aokshop
-- aokshop-core
-- aokshop-admin
-- aokshop-service
-- pom.xml
然后我用命令運行: mvn site
它在父aokshop和每個子模塊中生成一個“站點”文件夾,然后在aokshop中打開“ index.html”文件,它就像這樣:
它列出了所有模塊。 但是我無法打開子模塊
file:///G:/workspace/aokshop/target/site/aokshop-admin/index.html
找不到,我已經使用過maven-jxr-plugin並將其配置為:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.4</version>
<reportSets>
<reportSet>
<id>aggregate</id>
<reports>
<report>aggregate</report>
<report>test-aggregate</report>
</reports>
</reportSet>
</reportSets>
</plugin>
因此,我可以在父“ index.html”中引用子模塊嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.