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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:04:44+00:00 2026-05-27T05:04:44+00:00

We have a local artifactory repository setup for caching. It is configured in our

  • 0

We have a local artifactory repository setup for caching. It is configured in our projects, but when I’m looking at stdout of the build process I see rows like this

Downloading: http://ourserver/artifactory/our-repo/javax/transaction/jta/1.1/jta-1.1-sources.jar
Downloading: http://repo1.maven.org/maven2/javax/transaction/jta/1.1/jta-1.1-sources.jar
Downloaded: http://repo1.maven.org/maven2/javax/transaction/jta/1.1/jta-1.1-sources.jar (25 KB at 54.5 KB/sec)

So it looks like it is trying to download the jar from the local repository AND from Maven Central and then actually uses Maven Central).

If I copy the url of the local repository in my browser I get the jar without a problem.

If I check with the admin application of artifactory I can see the artefact.

Can anybody explain why Maven Central is used at all?

UPDATE: What was going on and what I did:

orien’s answer explaines why Maven Central was accessed at all.

mliebelt comments hinted me towards my solution: Looks like our local repository was to slow to answer when it had to download the artifact first. I configured the cache to eagerly download jars and sources when a pom gets requested. This should reduce the number of artifacts downloaded from elsewhere.

  • 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-27T05:04:45+00:00Added an answer on May 27, 2026 at 5:04 am

    Maven can be configured with multiple repositories. Adding a repository, as you have in your project, does not invalidate any repositories you have already configured. By default everyone gets the repository at Maven Central. Maven is then free to download an artifact from any repository it has available.

    Sounds like what you really want to do is set up a mirror. You can configure a mirror in your settings.xml file:

    <mirrors>
        <mirror>
            <id>our-server-repo</id>
            <name>our local repository</name>
            <url>http://ourserver/artifactory/our-repo</url>
            <mirrorOf>*</mirrorOf>
        </mirror>
    </mirrors>
    

    Note that we’ve used a wildcard (*) in the mirrorOf element. This specifies that all repositories will be accessed via the specified URL. With this configuration Maven will only access your local Artifactory repository.

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

Sidebar

Related Questions

I have artifactory setup on our local network, and we are currently looking to
We have a problem/misunderstanding with our current git setup. We have local master and
At our company all the developers have local admin rights. But now one of
I have a local mercurial repository with some site-specific changes in it. What I
I have a local git repository which tracks a remote SVN repository via git
I have a local Git repository I've been developing under for a few days:
I have a local git repository created with git svn clone . I make
We are using Maven for a large build process (> 100 modules). We have
I have local git repository on my pc with 2 branches, let's say branch1
I have local repository, and a remote bare repository. I've made changes to my

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.