ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jasper Floor <jasper.fl...@m4n.nl>
Subject Chain with resolver doesn't work
Date Tue, 06 Mar 2012 16:00:26 GMT
Hi,

I have a problem in my settings. I have the settings loaded from an
ant task. Eventually I want to load them from a central location for
all projects but currently it is just from the file system. The
problem I am having is that my chain resolver isn't working.


Basically a <chain> with <resolver> elements don't work while it does
work with other resolvers (<ibiblio>....)

I am using:

Ubuntu 11.04
ant/natty uptodate 1.8.1-1
Ivy 2.2.0 - 20100923230623

This doesn't work:

    <resolvers>
        <chain name="all">
           <resolver name="maven2"/>
           <resolver name="jboss"/>
        </chain>
        <ibiblio name="maven2" m2compatible="true" namespace="maven2" />
        <ibiblio name="jboss" m2compatible="true"
root="https://repository.jboss.org/nexus/content/groups/public" />
    </resolvers>


This does work:

    <resolvers>
        <chain name="all">
           <ibiblio name="maven2" m2compatible="true" namespace="maven2" />
            <ibiblio name="jboss" m2compatible="true"
root="https://repository.jboss.org/nexus/content/groups/public" />
        </chain>
    </resolvers>

This is the error output from ant:

BUILD FAILED
/home/jasper.floor/tmp/toivy/m4n_scheduler/build.xml:35: impossible to
configure ivy:settings with given file:
/home/jasper.floor/tmp/toivy/m4n_scheduler/ivy-mbuyu-settings.xml :
java.text.ParseException: failed to load settings from
file:/home/jasper.floor/tmp/toivy/m4n_scheduler/ivy-mbuyu-settings.xml:
no appropriate method found for adding resolver on class
org.apache.ivy.plugins.resolver.ChainResolver
	at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:165)
	at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)
	at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:388)
	at org.apache.ivy.Ivy.configure(Ivy.java:411)
	at org.apache.ivy.ant.IvyAntSettings.createIvyEngine(IvyAntSettings.java:272)
	at org.apache.ivy.ant.IvyAntSettings.getConfiguredIvyInstance(IvyAntSettings.java:237)
	at org.apache.ivy.ant.IvyTask.getIvyInstance(IvyTask.java:92)
	at org.apache.ivy.ant.IvyTask.prepareTask(IvyTask.java:256)
	at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:276)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:390)
	at org.apache.tools.ant.Target.performTasks(Target.java:411)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
	at org.apache.tools.ant.Main.runBuild(Main.java:801)
	at org.apache.tools.ant.Main.startAnt(Main.java:218)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.IllegalArgumentException: no appropriate method
found for adding resolver on class
org.apache.ivy.plugins.resolver.ChainResolver
	at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:540)
	at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:579)
	at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:274)
	at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
	... 24 more

Mime
View raw message