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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:47:37+00:00 2026-05-19T14:47:37+00:00

I have an ivy.xml containing <dependencies> <dependency org=commons-lang name=commons-lang rev=2.4/> <dependency org=foo-bar name=superwidgets rev=1.5/>

  • 0

I have an ivy.xml containing

<dependencies>
  <dependency org="commons-lang" name="commons-lang" rev="2.4"/>
  <dependency org="foo-bar" name="superwidgets" rev="1.5"/>
</dependencies>

The whole superwidget stuff is hosted in a maven repository at http://example.com/m2/. The ivy documentation mentions resolvers, but it seems to assume an ivy repository. How can I add a single unofficial maven repository to my ivy settings to be used only by a single module? (Or put another way, what corresponds to maven’s <repository> tag in ivy?) Nothing fancy, so I’d expect a one-liner in my ivy.xml.

  • 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-19T14:47:38+00:00Added an answer on May 19, 2026 at 2:47 pm

    You need to add an ivysettings.xml file with the following repositories listed (resolvers in ivy speak)

    <ivysettings>
        <settings defaultResolver="chain"/>
        <resolvers>
            <chain name="chain">
                <ibiblio name="central" m2compatible="true"/>
                <ibiblio name="example" m2compatible="true" root="http://example.com/m2/"/>
            </chain>
        </resolvers>
    </ivysettings>
    

    In my opinion it makes more sense to separate the dependency declaration (ivy.xml) from the mechanism of retrieval (settings.xml). This is not needed in Maven because it only supports one type of repository.

    If you want to get really fancy you can control which respository serves up a particular module:

    <ivysettings>
        <settings defaultResolver="central"/>
        <resolvers>
            <ibiblio name="central" m2compatible="true"/>
            <ibiblio name="example" m2compatible="true" root="http://example.com/m2/"/>
        </resolvers>
        <modules>
            <module organisation="foo-bar" name="superwidgets" resolver="example"/>
        </modules>
    </ivysettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following definition in ivy.xml <dependency org=southbeach name=ego rev=4.3.1 conf=properties->asterik > <artifact name=ego
In my ivy.xml file I have dependency statements like: <dependency conf=*->* org=gnu name=gcc rev=4.2.1
I have an ivy file with the following dependency: <dependency org=totimm name=techcentral rev=1.6.+ conf=sdk->sdk
Consider an ivy.xml like the following: <ivy-module version=2.0> <info organisation=com.foo module=FooBar /> <dependencies> <dependency
I have a fairly large ivy.xml containing a number of configurations which are the
I have an ivy.xml that can successfully resolve all of its dependencies, except the
I have a ivy.xml - https://gist.github.com/1898060 I also have the jar file related to
I have an issue where in I have defined dependancies in ivy.xml on our
At the moment I have this configuration: build.xml: <!-- Ivy settings start--> <condition property=ivy.home
I have just setup my first project using apache ant with ivy as dependency

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.