Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8045405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:32:13+00:00 2026-06-05T05:32:13+00:00

I have a multi module application, and I’m trying to generate a Maven site

  • 0

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 POM that holds all the common features for the child modules, and a 20 or so child modules.

I have cycled through endless online examples of how to get this to work. In none of these does the multi module part of this work. I can get the individual site output built OK, in the target/site folder of the children (and the aggregating module). I’ve also had it staging into a target/staging folder in the aggregating POM. The created stuff looks good.

But:

None of the child module links work.

I’ve tried running this under jetty, as some comments on this problem say the links only work when it’s built as a web site – but no, same problem, it can’t find the index.html of the child.

Does anyone have an example of this working? And to avoid me tearing out any more hair (god knows it’s running out up there as it is) I’d rather see the actual working POM code and/or the stages followed to correct test and deploy.

Can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:32:14+00:00Added an answer on June 5, 2026 at 5:32 am

    OK, finally got this working.

    Add this (only) to the parent POM, changing staging folder as required:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.0</version>
        <configuration>
         <stagingDirectory>C:\temp\stage</stagingDirectory>
         <reportPlugins>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-project-info-reports-plugin</artifactId>
             <version>2.4</version>
           </plugin>
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-javadoc-plugin</artifactId>
             <version>2.8</version>
             <configuration></configuration>
             <reportSets>
               <reportSet>
                 <id>non-aggregate</id>
                 <configuration>
                   <!-- Specific configuration for the aggregate report -->
                   <sourcepath>${project.build.sourceDirectory}/../generated</sourcepath>
                 </configuration>
                 <reports>
                   <report>javadoc</report>
                 </reports>
               </reportSet>
               <reportSet>
                 <id>aggregate</id>
                 <configuration>
                   <!-- Specific configuration for the aggregate report -->
                   <sourcepath>${project.build.sourceDirectory}/../generated</sourcepath>
                 </configuration>
                 <reports>
                   <report>aggregate</report>
                 </reports>
               </reportSet>
             </reportSets>
           </plugin>
            <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-surefire-report-plugin</artifactId>
             <version>2.6</version>
           </plugin>
         </reportPlugins>
        </configuration>
    </plugin>
    

    Add this to distribution management section of the parent:

    <site>
      <id>${project.artifactId}-site</id>
      <url>./</url>
    </site>
    

    Then run

    mvn site site:stage
    

    This should deploy into temp/site with working links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-module Maven project that is a Java web application. I am
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin
I have a multi module maven web application, which uses hibernate. I use the
I have Maven multi-module project with such structure: parent-pom-project -- module1 -- module2 At
I have a multi-module maven build that requires a profile to be activated only
I have a multi module project like this: gwt-app model webapp (depends on gwt-app
I have a multi-module Maven project that makes use of WAR overlays (stack of
I'm new to Maven. I have a multi-module maven 2 project that has the
I have a multi-module maven project. We intend to version all these modules together.
I have a multi-module (maven) spring build. All the modules publish some beans, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.