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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:53:52+00:00 2026-06-16T23:53:52+00:00

I would like to ask you for help with following issue. Consider 3 projects

  • 0

I would like to ask you for help with following issue.

Consider 3 projects A, B, C. Projects B and C are standalone modules (resulting in jar). These projects Bcan live by their own. Project A is somehow specific in way, that I need it to behave as module (for project B, C) parent. When I build project A, I need to build B, C too. Hovewer, Project A has sources of it’s own, and when I build it, I want it to result in jar file too.

This is somehow contradictory in maven world, as far as my knowledge goes. I simply need my parent pom to manage modules, while having it declared with jar type.

So far, I’ve not been able to find any resources on how to manage this, so hopefully, You guys will bring some ideas up. Thanks in advance.

  • 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-16T23:53:53+00:00Added an answer on June 16, 2026 at 11:53 pm

    This is a violation of the Single Responsibility Principle. Either Project A should be an aggregator or it should result in an artifact after a build. So you should factor out the sources of Project A into a project D and let B and C depend on D.

    If you insist in inheriting a dependency on the sources current contained in A then i suggest you should create another Project E. The hierarchy then should look like:

    A
    +-D
    +-E
      +-B
      +-C
    

    The new aggregator E should then have a dependency on D.

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

Sidebar

Related Questions

I would like to ask you for help with the following code I have
Good morning! I would like to ask some help from you guys on how
I'm still fairly new to mysql and would like to ask for some help.
I would like to ask you for some help. How can I use an
as i am new to jQuery i would like to ask the following, i
I would like to ask for help regarding datasets and Crystal Reports. I have
Hello I would like to ask your help regarding javascript code, how do I
I would like to ask for help. I got this homework to create a
I would like to ask some Drupaler for help. Is it possible to show
I would like to ask for help with converting my mysql_* query to prepared

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.