Multi module POM - creating a site that works

前端 未结 9 1858
名媛妹妹
名媛妹妹 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:35

    I found a "simpler" solution to configure the stage goal. It will automatically aggregate the documentation of each module in the ${project.baseURI}/target/staging folder. The trick is to add this to the parent pom of all the sub-modules:

      
         
            ${project.artifactId}-site
            ${project.baseUri}
         
      
    

    Run

    mvn clean site site:stage 
    

    from the pom aggregator. Then have a look in the target/staging folder. You will have the sub-modules documentation correctly linked!

提交回复
热议问题