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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:17:06+00:00 2026-05-17T15:17:06+00:00

At work we have a number of projects which need to share some common

  • 0

At work we have a number of projects which need to share some common code. Some code is completely universal while some of the code is only shared by a subset of our projects. Should I split up the common code into two separate projects or use two different ivy configurations for a single project?


Option 1 – Two separate projects.

  • Proj 1 – Common published as default configuration
  • Proj 1 – Common-xml published as default configuration

Potential Issues: Requires that I have two separate projects, with two separate build files and two separate ivy files.

Option 2 – One project, multiple ivy configurations for different artifacts

  • Artifact 1 – Common published as core
  • Artifact 2 – Common xml published as core-xml

Potential Issues: I may have to maintain separate source directories in the same project.

In either case, the common xml component may rely on the common core component.


So, SF, what should I do for maintaining my common code? What issues did I miss with the two methods, and what are any other pros/cons or alternative solutions?

  • 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-17T15:17:06+00:00Added an answer on May 17, 2026 at 3:17 pm

    Hmm, it really comes down to how you prefer to manage your source code. But first, I’d be asking the question of whether you really need to split the source. The idea of a commons project is to encapsulate code, classes, interfaces, etc that can be used as a common toolkit by other projects. It doesn’t mean those projects have to use everything in Commons. They might only use a small portion of it. That’s perfectly fine and it might be that splitting your Commons is effectively over optimisation.

    Think of this – what happens if your next project uses a different subset of the Commons library? are you going to split again?

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

Sidebar

Related Questions

Ok where I work we have a fairly substantial number of systems written over
At work we have 4 people working together on a few different projects. For
For work I have to code with an external company's API to deal with
Where I work I have several projects in separate repositories. Each project shares a
At work we have an application to play 2K (2048*1556px) OpenEXR film sequences. It
At work we have two competing theories for salts. The products I work on
At work I have a standard desk (4 legs, flat surface, you get the
Where I work we have a little bit of a dilemma... I work on
In my work I have come across syntax like global:: (C#) or G:Loading($value) in
Here at work we have a very large application with multiple sub applications. (500

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.