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
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!