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 3596546
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:00:07+00:00 2026-05-18T20:00:07+00:00

My multi-module Maven project looks like: /foo pom.xml /foo-parent /foo-core /foo-something /src /site Pay

  • 0

My multi-module Maven project looks like:

/foo
  pom.xml
  /foo-parent
  /foo-core
  /foo-something
  /src
    /site

Pay attention that foo is not a parent project, but foo-parent is (for foo-core and foo-something). foo is not inheriting from foo-parent. Site configuration is stored in foo. All other sub-modules don’t know anything about project site and don’t have <distributionManagement>. mvn site works perfect, and now I’m running mvn site-deploy:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.0.1:deploy
(default-deploy) on project foo-parent: Missing site information in the 
distribution management element in the project.. -> [Help 1]

Maven is trying to site-deploy every sub-module individually?? Is it a correct behavior?

  • 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-05-18T20:00:08+00:00Added an answer on May 18, 2026 at 8:00 pm

    In regards to your distribution config question:

    Maven won’t let a child module be the parent pom of the top level pom.xml. That’s Maven’s way of telling you that you not structuring you project to convention.

    You’ll have to make foo’s pom.xml a parent pom for all modules in the whole project.

    The workaround for what you are trying to structure, have the modules that depend on foo-parent, list foo-parent’s pom.xml in the parent section of their pom. Then have foo-parent list foo’s pom.xml in its parent section. You can get away with having foo-parent be the parent pom.xml for all the other modules because all modules are peers to each other in structure layout.

    The top level pom.xml should only contain the necessary information to be shared between all modules.

    In regards to your site-deploy question:

    Maven tries to deploy every site individually for each module because of the top level /src/site/site.xml you have setup. But this is also partly due to the fact that your probably running site-deploy from the top level (foo). If you only want the documentation for foo-parent, run site-deploy only on foo-parent. However, you may not get any of the documentation for the other modules linked into foo-parent’s site documentation.

    P.S. Better read up on Maven 3. There are some very significant changes to the site documentation generation coming!

    EDIT: Links for reference:

    • Maven 3 Compatibility Notes
    • Maven 3 Site Plugin Notes
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My multi-module Maven project looks like: /foo pom.xml /foo-parent /foo-core /foo-something /src /site Pay
I have a multi-module Maven project with a parent project P and three sub-modules
I have a multi-module maven project with an installer sub-project. The installer will be
I have a multi module Maven project and I want the sub projects to
I have a multi module Maven project, one of its modules has the main
I have a multi-module maven project, and I'm trying to create an assembly for
I am trying to perform a release using a multi-module maven project. My objective
There is a multi-module Maven-3 project, where one of sub-modules is used as <dependency>
I have a multi module project consisting of several jar modules and a war
We're considering using Maven for a large multi project build, to give you an

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.