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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:24:34+00:00 2026-06-04T04:24:34+00:00

I have 3 maven projects WebComponents DataComponents ServiceComponents When i build each of the

  • 0

I have 3 maven projects

  • WebComponents
  • DataComponents
  • ServiceComponents

When i build each of the projects i have to go into each folder and run mvn clean install on each of the projects.

I have looked into multi module projects and most of the resources i see suggest that i have to make a change to the structure of my existing projects.

Is it possible to have a new project that will build each of the independent projects without me having to make any changes to anything in the existing project including their individual pom files?

I can probably achieve this by writing a simple batch file that builds every projects but is it possible using Maven?

  • 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-04T04:24:35+00:00Added an answer on June 4, 2026 at 4:24 am

    You’re looking for Maven aggregation without inheritance. As shown in the referenced page, you just create a new POM whose packaging is “pom” and which has a list of “modules”. A module is a relative path to another Maven project:

    <project>
      ...
      <packaging>pom</packaging>
      ...
      <modules>
        <module>foo</module> <!-- module is in a subdirectory of this project -->
        <module>../bar</module> <!-- module is a sibling to this project -->
        <module>../../../other-projects/baz</module> <!-- somewhere else entirely -->
      </modules>
    </project>
    

    Default behavior when building such a pom–known as an “aggregator”–is to build all of the modules as if you’d executed Maven in each module directory with the same arguments.

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

Sidebar

Related Questions

I have read that to build multiple Maven projects in one step (with automatic
I have a Git repository that contains a bunch of top-level maven projects (each
I have a number of maven projects which build various components of a plugin
Sorry for being verbose... I have some existing maven projects. I imported them into
I have several Maven projects that each have some common functionality or at least
I have three maven projects. Lets say A, B and C. Each of these
Im trying to understand maven profiles and have run into the following issue. This
I have several Maven projects in eclipse that depends on each other. Some of
Let's say I have two maven profiles for running projects web tests: 1. first
Suppose I have a war and jar projects defined in maven. The Jar project

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.