Multi module POM - creating a site that works

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

    Some pointers for the lost. After running mvn site site:stage the site directory will not contain the composed site, that will be in the staging directory. According to the maven site plugin usage page the composition is not done until the site is deployed. After staging, you can call mvn site:deploy to copy the composed site to the location specified in the url you defined in the distributionManagement

    
      
        website
        file://${project.build.directory}/completesite
      
     
    

    In this case the completed site will end up in the directory completesite in the project build directory (usually the target directory).

提交回复
热议问题