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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:54:20+00:00 2026-05-13T10:54:20+00:00

Summary: I’m looking for a way to instruct maven to search for dependencies in

  • 0

Summary: I’m looking for a way to instruct maven to search for dependencies in target/classes instead of jar in the local repository

Say I have 2 modules, A and B where A depends on B. Both are listed in a module S. Normally I need to run ‘mvn install’ in S. I’m looking for a way to run ‘mvn compile’ so that when A is compiled its classpath will contain ../B/target/classes instead of ~/.m2/repository/com/company/b/1.0/b-1.0.jar.

(my reason is so that i can have continous compilation without the need to go through packaing and installation, or, more exactly, use ‘mvn scala:cc’ on multiple modules)

  • 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-13T10:54:21+00:00Added an answer on May 13, 2026 at 10:54 am

    I don’t think that this is possible without horrible hacking, this is just not how maven works. Maven uses binary dependencies and needs a local repository to resolve them. So, the maven way to handle this is to launch a reactor build on all modules. Just in case, have a look at Maven Tips and Tricks: Advanced Reactor Options.

    But, during development, can’t you just import all your projects in your IDE and use “project references” (i.e. configure your projects to depend on source code instead of a JAR) like most Java developers are doing? This is the common approach to avoid having to install an artifact to “see” the modifications.

    If this is not possible and if you really don’t want to install artifacts into your local repository, then you’ll have to move your code into a unique module.

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

Sidebar

Related Questions

Summary : is there a way to get the unique lines from a file
Summary I am after some advice on the easiest way to analyze simple data
Summary : I am looking a fast XML parser (most likely a wrapper around
Summary jquery is used to retrieve search results via the get() call. When rendering
Summary: I want to save two classes of the same name and different namespaces
Summary I have been looking at historical Australian Rules outcomes using excel with an
Summary What's the best way to ensure a table cell cannot be less than
Summary: How can I determine TFS source control configuration for a local folder. Explanation:
SUMMARY: I have an application which consumes way more memory that it should (roughly
Summary: I am trying to determine the easiest way to mask the output of

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.