You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by ar...@rbauction.com on 2008/03/11 22:06:41 UTC
unknown resolver when running tutorial
I'm trying the Project dependencies tutorial from
http://ant.apache.org/ivy/history/latest-milestone/tutorial/dependence.html.
When I run 'ant publish' from the dependee folder I get this error below.
publish:
[ivy:publish] :: delivering :: org.apache#dependee;working@wlt13592 :: 1
:: rele
ase :: Tue Mar 11 10:37:32 PDT 2008
[ivy:publish] delivering ivy file to C:\Documents and
Settings\aleragu\Desktop
\Learning\ivy-examples\dependence\dependee/build/ivy.xml
[ivy:publish] :: publishing :: org.apache#dependee
BUILD FAILED
C:\Documents and
Settings\aleragu\Desktop\Learning\ivy-examples\dependence\depen
dee\build.xml:93: impossible to publish artifacts for
org.apache#dependee;workin
g@wlt13592: java.lang.IllegalArgumentException: unknown resolver projects
Re: unknown resolver when running tutorial
Posted by Xavier Hanin <xa...@gmail.com>.
I've just tested the example and it works fine for me.
Have you checked that you are using Ivy 2 beta 2? You should see
something like this in your console:
[ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/
And make sure you use the example provided with the same version of Ivy.
Then your console should look like this:
---------8<------------
Buildfile: build.xml
[ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 ::
http://ant.apache.org/ivy/ ::
[ivy:settings] :: loading settings :: file =
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/settings/ivysettings.xml
[ivy:settings] DEPRECATED: 'defaultCache' is deprecated, use
'caches[@defaultCacheDir]' instead
(file:/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/settings/ivysettings.xml)
resolve:
[ivy:retrieve] :: resolving dependencies :: org.apache#dependee;working@diablo
[ivy:retrieve] confs: [default]
[ivy:retrieve] found commons-lang#commons-lang;2.0 in libraries
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/commons-lang/commons-lang/2.0/commons-lang-2.0.jar
...
[ivy:retrieve] ...........................................................................
[ivy:retrieve] .......... (165kB)
[ivy:retrieve] .. (0kB)
[ivy:retrieve] [SUCCESSFUL ]
commons-lang#commons-lang;2.0!commons-lang.jar (3062ms)
[ivy:retrieve] :: resolution report :: resolve 526ms :: artifacts dl 3065ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 1 | 0 | 0 || 1 | 1 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.apache#dependee
[ivy:retrieve] confs: [default]
[ivy:retrieve] 1 artifacts copied, 0 already retrieved (165kB/28ms)
compile:
[mkdir] Created dir:
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/dependee/build/classes
[javac] Compiling 1 source file to
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/dependee/build/classes
jar:
[propertyfile] Creating new property file:
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/dependee/build/classes/version.properties
[jar] Building jar:
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/dependee/build/dependee.jar
publish:
[ivy:publish] :: delivering :: org.apache#dependee;working@diablo :: 1
:: release :: Mon Mar 17 17:30:18 CET 2008
[ivy:publish] delivering ivy file to
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/dependee/build/ivy.xml
[ivy:publish] :: publishing :: org.apache#dependee
[ivy:publish] published dependee to
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/settings/repository/dependee-1.jar
[ivy:publish] published ivy to
/home/xavier/Documents/ant+ivy/ivy/src/example/dependence/settings/repository/dependee-1.xml
[echo] project dependee released with version 1
BUILD SUCCESSFUL
Total time: 6 seconds
------8<--------------
HTH,
Xavier
On Tue, Mar 11, 2008 at 10:06 PM, <ar...@rbauction.com> wrote:
> I'm trying the Project dependencies tutorial from
> http://ant.apache.org/ivy/history/latest-milestone/tutorial/dependence.html.
> When I run 'ant publish' from the dependee folder I get this error below.
>
> publish:
> [ivy:publish] :: delivering :: org.apache#dependee;working@wlt13592 :: 1
> :: rele
> ase :: Tue Mar 11 10:37:32 PDT 2008
> [ivy:publish] delivering ivy file to C:\Documents and
> Settings\aleragu\Desktop
> \Learning\ivy-examples\dependence\dependee/build/ivy.xml
> [ivy:publish] :: publishing :: org.apache#dependee
>
> BUILD FAILED
> C:\Documents and
> Settings\aleragu\Desktop\Learning\ivy-examples\dependence\depen
> dee\build.xml:93: impossible to publish artifacts for
> org.apache#dependee;workin
> g@wlt13592: java.lang.IllegalArgumentException: unknown resolver projects
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/