ivy-resolve via ant: impossible to resolve dependencies

Hello,

I am trying to resolve Ivy via an ant script with the task [code]

<ivy:resolve file=“ivy.xml”/>
[/code]
When I run the ant script I get a lot of errors/warnings:

[code]
[ivy:resolve]
:: Apache Ivy 2.4.0-rc1 - 20140315220245 :: http://ant.apache.org/ivy/ ::
[ivy:resolve]
log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).
[ivy:resolve]
log4j:WARN Please initialize the log4j system properly.
[ivy:resolve]
:: loading settings :: file = /xxx/ivysettings.xml
[ivy:resolve]
:: problems summary ::
[ivy:resolve]
:::: WARNINGS
[ivy:resolve]
module not found: com.vaadin#vaadin-server;7.1.*
[ivy:resolve]
==== public: tried
[ivy:resolve]
http://repo1.maven.org/maven2/com/vaadin/vaadin-server/7.1.*/vaadin-server-7.1.*.pom
[ivy:resolve]
– artifact com.vaadin#vaadin-server;7.1.!vaadin-server.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/com/vaadin/vaadin-server/7.1.*/vaadin-server-7.1.*.jar
[ivy:resolve]
==== vaadin-addons: tried
[ivy:resolve]
http://maven.vaadin.com/vaadin-addons/com/vaadin/vaadin-server/7.1.*/vaadin-server-7.1.*.pom
[ivy:resolve]
– artifact com.vaadin#vaadin-server;7.1.
!vaadin-server.jar:
[ivy:resolve]
http://maven.vaadin.com/vaadin-addons/com/vaadin/vaadin-server/7.1.*/vaadin-server-7.1.*.jar
[ivy:resolve]
==== vaadin-snapshots: tried
[ivy:resolve]
https://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/vaadin-server/7.1.*/vaadin-server-7.1.*.pom
[ivy:resolve]
– artifact com.vaadin#vaadin-server;7.1.!vaadin-server.jar:
[ivy:resolve]
https://oss.sonatype.org/content/repositories/vaadin-snapshots/com/vaadin/vaadin-server/7.1.*/vaadin-server-7.1.*.jar
[ivy:resolve]
==== smartsprites-ivy: tried
[ivy:resolve]
/home/pboenisc/Workspace/eclipse/Komplett_Vaadin/vaadin/ivymodule/vaadin-server-ivy-7.1.
.xml
[ivy:resolve]
==== smartsprites-artifact: tried
[ivy:resolve]
– artifact com.vaadin#vaadin-server;7.1.!vaadin-server.jar:
[ivy:resolve]
http://dev.vaadin.com/svn/versions/6.8/build/smartsprites/lib/vaadin-server-7.1.*.jar
[ivy:resolve]
module not found: com.vaadin#vaadin-themes;7.1.

[ivy:resolve]
==== public: tried
[ivy:resolve]
http://repo1.maven.org/maven2/com/vaadin/vaadin-themes/7.1.*/vaadin-themes-7.1.*.pom
[ivy:resolve]
– artifact com.vaadin#vaadin-themes;7.1.!vaadin-themes.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/com/vaadin/vaadin-themes/7.1.*/vaadin-themes-7.1.*.jar
[ivy:resolve]
==== vaadin-addons: tried
[ivy:resolve]
http://maven.vaadin.com/vaadin-addons/com/vaadin/vaadin-themes/7.1.*/vaadin-themes-7.1.*.pom
[ivy:resolve]
– artifact com.vaadin#vaadin-themes;7.1.
!vaadin-themes.jar:
[ivy:resolve]
http://maven.vaadin.com/vaadin-addons/com/vaadin/vaadin-themes/7.1.*/vaadin-themes-7.1.*.jar

[ivy:resolve]
==== smartsprites-ivy: tried
[ivy:resolve]
/home/pboenisc/Workspace/eclipse/Komplett_Vaadin/vaadin/ivymodule/vaadin-client-compiler-ivy-7.1..xml
[ivy:resolve]
==== smartsprites-artifact: tried
[ivy:resolve]
– artifact com.vaadin#vaadin-client-compiler;7.1.
!vaadin-client-compiler.jar:
[ivy:resolve]
http://dev.vaadin.com/svn/versions/6.8/build/smartsprites/lib/vaadin-client-compiler-7.1.*.jar
[ivy:resolve]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
:: UNRESOLVED DEPENDENCIES ::
[ivy:resolve]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
:: com.vaadin#vaadin-server;7.1.: not found
[ivy:resolve]
:: com.vaadin#vaadin-themes;7.1.
: not found
[ivy:resolve]
:: com.vaadin#vaadin-push;7.1.: not found
[ivy:resolve]
:: com.vaadin#vaadin-client-compiled;7.1.
: not found
[ivy:resolve]
:: com.vaadin#vaadin-client;7.1.: not found
[ivy:resolve]
:: com.vaadin#vaadin-client-compiler;7.1.
: not found
[ivy:resolve]
::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]

[ivy:resolve]
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/xxx/build.xml:30: impossible to resolve dependencies:
resolve failed - see output for details
[/code]If I resolve the dependencies inside eclipse (for example toolbar → Resolve All) with the same ivy.xml and ivysettings.xml everything works fine. Does anyone has an idea, what is the problem?
I suppose it has something to do with the proxy configuration. Do I have to set the proxy in another way? Or…

Thanks a lot!

Have you tried to replace * with concrete version? Maybe ant task can’t resolve wildcards while Eclipse plugin can.

I do not know why, but suddenly it works :slight_smile: