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

  • Home
  • SEARCH
  • 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 3281404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:48:43+00:00 2026-05-17T19:48:43+00:00

We’re considering using Maven for a large multi project build, to give you an

  • 0

We’re considering using Maven for a large multi project build, to give you an idea of the size, some of the sub-projects have several million lines of code.

The ideal structure would be something like:

  • projectA
    • module1
    • module2
  • projectB
    • moduleAlpha (depends on moduleBeta)
    • moduleBeta (depends on projectA:module1)
  • …

Where each module is actually a maven sub-project, and the dependencies are not always at the artifact level (i.e. jars), but rather cause the sub-project to be compiled as necessary.

Adding a common project root allows for expressing the dependencies as described, for example:

  • project-root
    • projectA
      • module1
      • module2
    • projectB
      • moduleAlpha (depends on moduleBeta)
      • moduleBeta (depends on projectA:module1)
    • …

But forces you to build from project-root. Remember that this is a very large project, and a full build would be something that is not always desirable.

Most teams work at the projectX level some even at the moduleX level.

What we need is to sometimes build against a generated artifact (that is the jar produced by module1), other times we want to build from the source code.

I have taken a look at the reactor plugin, that allows you to resume a build from a certain point or build only the dependents. But it seems very manual (although it is very useful in certain cases).

What I picture is some type artifact repository that builds the artifact when it is required. For example, making projectA an artifact repository that projectB references.
When you for some reason need a rebuild of projectA‘s artifact, you could just remove the jar.

Is something like that implemented as part of Maven or as a plugin?
If not, is it feasible to implement?

  • 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-17T19:48:44+00:00Added an answer on May 17, 2026 at 7:48 pm

    What we need is to sometimes build against a generated artifact (that is the jar produced by module1), other times we want to build from the source code.

    I don’t see any particular problem here:

    • when you want to build against binary dependencies (jars), just build the artifact you’re working on (and let Maven resolve and use binary dependencies)
    • when you want to build against source code, use a reactor build and the advanced reactor options, for example to build the dependencies of moduleAlpha and moduleAlpha:

      mvn -pl moduleAlpha -am
      

    What I picture is some type artifact repository that builds the artifact when it is required. For example, making projectA an artifact repository that projectB references. When you for some reason need a rebuild of projectA’s artifact, you could just remove the jar.

    I’m not sure to understand what you’re talking about and removing JARs doesn’t sound like a good idea.

    What you need is a continuous build process that builds the whole project as often as possible to produce SNAPSHOT of all modules and deploy them in a corporate repository. That’s just the way to go.

    And to make the build as fast as possible, I’d consider using Maven 3.x and the parallel builds option.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I have a reasonable size flat file database of text documents mostly saved in
This could be a duplicate question, but I have no idea what search terms
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text

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.