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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:46:38+00:00 2026-05-23T02:46:38+00:00

I have a Maven project that was built a few years back, and now

  • 0

I have a Maven project that was built a few years back, and now I need to make some updates. One of the dependencies to my project has a Maven repository listed in its POM that no longer exists. I get build failures now.

I would have thought the repository listings in my POM or Settings.xml would trump any repositories listed in a dependency’s POM; or Maven would try my repositories after failing to connect to the extinct repository. Instead, it just bombs out with a build failure.

Additionally, I already have the required dependencies in my local repository. I would have additionally thought that Maven would just use that.

Is there a way to override the inherited repository listings, or tell Maven to carry-on in the case of a repo problem?

  • 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-23T02:46:39+00:00Added an answer on May 23, 2026 at 2:46 am

    If the artifact that you depend on is a snapshot version then maven will check for a new snapshot every time you build, thats why it is a good practice to lock down your dependencies to a released version.

    You can “override” the repository declarations by defining a <mirror> in the settings.xml.

    See http://maven.apache.org/settings.html#Mirrors

    I usually set up a locally hosted repository manager (preferably nexus) and then define mirrorOf(*) = local-repo-manager/url.
    Nexus allows multiple repo’s to be grouped with a predefined search order.
    Nexus repo’s can be locally hosted or caching/proxies to public repo’s.
    I usually have a locally hosted 3rd party repo at the front of the group, where I can store artifacts that are not published on public repo’s.

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

Sidebar

Related Questions

I have a project that is built and managed by Maven. I have a
I have a maven project that was generated by Spring Roo. Now I am
I have a project (built from an AppFuse template) that requires Maven 2.2.1. So
I have a project that has a few dependencies on other Jars. I currently
I have a Eclipse project where Maven manages the dependencies. I have also few
We have a few maven projects that inherit from eachother. Our persistence layer project's
I have a maven3 webapp (war) project that has 2 dependencies. One is a
I have a maven project that has a set of library dependancies that are
Currently I have a simple maven project that is building a jar file and
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin

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.