Multi module POM - creating a site that works

前端 未结 9 1855
名媛妹妹
名媛妹妹 2020-12-08 22:06

I have a multi module application, and I’m trying to generate a Maven site for this app.

I have an aggregating POM that holds all the child modules, an inheritance PO

9条回答
  •  不思量自难忘°
    2020-12-08 22:16

    I my case adding the below section to the top pom resolved the problem:

    
      
        struts-site
        https://struts.apache.org/maven/
      
    
    

    Right now using the below command it will generate the whole page under target/staging:

    ./mvnw clean site site:stage
    

    I'm using such plugin configuration:

    org.apache.maven.plugins
    maven-site-plugin
    3.9.0
    
      false
    
    

    Please be aware that you must also define site.xml for each submodule as menus are not inherited.

提交回复
热议问题