maven - Multi module POM - creating a site that works - Stack Overflow
This doesn't work exactly how you would think it would. This is described in the Why don't the links between parent and child modules work when I run "mvn site"? FAQ.
I'm not an expert at Maven but this is how I got a site to generate locally:
Configure a
<site>in your root POM<distributionManagement> <site> <id>internal.repo</id> <name>Temporary Staging Repository</name> <url>file://${project.build.directory}/mvn-repo</url> </site> </distributionManagement>Build the site for your project
mvn siteGenerate the local staging site. This "Deploys the generated site to a local staging or mock directory based on the site URL specified in the section of the POM."
mvn site:stageBy default, the site will be generated underneath the
${project.build.directory}/stagingdirectory
Read full article from maven - Multi module POM - creating a site that works - Stack Overflow
No comments:
Post a Comment