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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:26:28+00:00 2026-06-02T12:26:28+00:00

Ok; my first stackoverflow question. I have been trying to use our local Nexus

  • 0

Ok; my first stackoverflow question.

I have been trying to use our local Nexus to download artifacts from and to retrieve those artifacts automatically from an outer repositories in case they don’t exist. and CACHE them in the way.

I am using Ant and Ivy to handle the dependency.

More or less the question is similar to this question:
Ivy via Nexus proxy
The ultimate answer to my understanding did enable the use of nexus as a repository but it didn’t cache (at least not for me).

I have seen lots of material hovering around the subject but nothing of the exact nature (and sadly I couldn’t figure it out).

So let me wrap it up.
I am using the local nexus repository using a url resolver, because we should use a URL if we need to publish (read that somewhere):

<chain name="deploy-chain">
    <url
        name="nexus"
        m2compatible="true"
    >
        <artifact pattern="${nexus.host}/${nexus.pattern}" />
        <ivy pattern="${nexus.host}/${nexus.ivy.pattern}" />
    </url>

    <ibiblio
        name="maven.public"
        m2compatible="true"
    />
</chain>

The ivy.xml and build.xml are very standard.

So, is it possible to do this using Ivy or is this a nexus issue?

Is it a good practice to publish the artifacts (designated ant target) to Nexus after I retrieve the artifacts in my cache or local repository? (it seems like a really bad practice, but the only option is always a great option)

Is this a misuse of the tools?

  • 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-06-02T12:26:42+00:00Added an answer on June 2, 2026 at 12:26 pm

    The ibiblio resolver is the best way to configure a Maven repository.

    The following ivysettings.xml file configures ivy to pull it’s dependencies Nexus.

    <ivysettings>
        <settings defaultResolver="central-proxy"/>
        <resolvers>
            <ibiblio name="central-proxy" m2compatible="true" root="http://mynexushost/nexus/content/repositories/central/"/>
            <ibiblio name="release-repo"  m2compatible="true" root="http://mynexushost/nexus/content/repositories/releases/"/>
        </resolvers>
    </ivysettings>
    

    The “central-proxy” resolver is configured to pull content from the default Maven Central proxy repository that comes by default in Nexus.

    The “release-repo” resolver can be used when publishing content to the Nexus release repository.

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

Sidebar

Related Questions

This is my first question on stackoverflow (I have usually been able to figure
First question ever on stackoverflow. Been reading for some time now, while trying to
First question on Stackoverflow (.Net 2.0): So I am trying to return an XML
this is my first question at stackoverflow, so bear with me. In my local
This is my first question ever here on stackoverflow! I've been searching for a
I've been reading a lot of stackoverflow questions about how to use the breadth-first
It has been a long question, so here is the summary first, I have
This may be a bit of a nooby question, I have been trying to
First posting to Stackoverflow, but have been searching for answers for sometime now. Learning
This is my very first question on Stackoverflow, so please bear with me if

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.