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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:40:55+00:00 2026-05-11T18:40:55+00:00

I’ve got a main project where module A depends on a a .jar file

  • 0

I’ve got a main project where module A depends on a a .jar file created by the build for module B. While I’m in development, I’m modifying B regularly, then building B to create the library, then building A to use these changes.

Is there a way to point module A’s ivy file to the jar file my module B build creates? Given I’m iterating multiple times, I don’t want to check module B’s jar into ivy over and over. It’s also annoying to have to copy the jar into module A’s build directory structure after every module B build.

Actually, for me it’s worse, as I have about 4 modules in something of a dependency tree (A->B->CD). If it were just A and B I’d probably just live with it, but I’m getting sick of copying jar files around after the submodule builds and thought if there was a way to override the ivy file dependency line to look locally then that’d make life a lot simpler.

  • 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-11T18:40:55+00:00Added an answer on May 11, 2026 at 6:40 pm

    Pointing the Ivy dependency at your locally built module isn’t the way to solve this. Instead when you build module B publish it to your local Ivy repository. When you resolve your dependencies for module A it will pull down module B from your local repository.

    From the Ivy docs on the local repository:

    The local repository is particularly
    useful when you want to do something
    without being disturbed by anything
    else happening in the environment.
    This means that whenever ivy is able
    to locate a module in this repository
    it will be used, no matter of what is
    available in others.

    For instance, if you have a module
    declaring a dependency on the module
    foo in revision latest.integration,
    then if a revision of foo is found in
    the local repository, it will be used,
    even if a more recent revision is
    available in other repositories.

    This may be disturbing for some of
    you, but imagine you have to implement
    a new feature on a project, and in
    order to achieve that you need to
    modify two modules: you add a new
    method in module foo and exploit this
    new method in module bar. Then if you
    publish the module foo to your local
    repository, you will be sure to get it
    in your bar module, even if someone
    else publish a new revision of foo in
    the shared repository (this revision
    not having the new method you are
    currently adding).

    But be careful, when you have finished
    your development and publish it on the
    shared you will have to clean your
    local repository to benefit from new
    versions published in the shared
    repository.

    Note also that modules found in the
    local repository must be complete,
    i.e. they must provide both a module
    descriptor and the published
    artifacts.

    The Using Ivy in multiple projects environment documentation has an example publish-local Ant task that you might find useful.

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

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer To catch that error specifically, change your code to look… May 11, 2026 at 11:57 pm
  • Editorial Team
    Editorial Team added an answer You can use special transformation tools/languages for that TXL or… May 11, 2026 at 11:57 pm
  • Editorial Team
    Editorial Team added an answer Not entirely sure why this is a CW, but regardless,… May 11, 2026 at 11:57 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.