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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:09:00+00:00 2026-05-24T08:09:00+00:00

I really don’t get it, I have a multimodule project (snapshots) and I’m using

  • 0

I really don’t get it, I have a multimodule project (snapshots) and I’m using Nexus repo manager. If I make changes to projectB and $mvn install it, then projectA still uses the old dependency when being built.

No matter if I do $mvn -o compile or $mvn -U compile, it still has the old dependency on classpath.

If I deploy projectB $mvn deploy, projectA still gets the old dependency on classpath
unless I go $mvn -U compile, then fresh snapshot projectB dependency is served on classpath of projectA when being built. This works as expected.

BUT

$mvn install simply doesn’t allow me to use the installed artifact version from outside, no matter what. I always have to deploy it and run $mvn -U compile for others to get the fresh dependency.

Could please anybody explain to me, why this happens ? Clearly maven install and update should work, but it requires deploy. What the hell ?

  • 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-24T08:09:01+00:00Added an answer on May 24, 2026 at 8:09 am

    mvn install installs the built jars to the local repo at ~/m2/repository/. When it comes to snapshots, mvn install replaces the old snapshot with the new one.

    It seems there’s an issue with your local repo. So, I suggest deleting the current snapshots from the local repo, and try again. In the worst case, delete the entire ~/.m2 repo and try again.

    Right now you are doing it the hard way by uploading your artifacts to the remote and repo (via mvn deploy), and downloading again with mvn -U compile.

    Based on the comments – it seems to be a bug in the maven-install-plugin. Newest version is maven-install-plugin-2.3.1. Set the plugin explicitly in your pom.

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

Sidebar

Related Questions

I really don't know/have the answer, knowledge to find a resource value using a
As a developer I really don't like writing documentation but when I have to
I really don't want to have to reinvent the wheel with this one. There
I have this json object (which i don't really know what is inside) and
I really don't get why this is not working. I want to avoid a
I have this problem and really don't know how to solve this. I'm having
I have very simple situation and really don't have a clue why this isn't
I messed around with this enough but I really don't get it. Here is
I don't get this. I really don't get the ReadEndElement. I assume after every
I am not being flip I really don't get it. I just read a

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.