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 Daniel Schwager <Da...@dtnet.de> on 2009/11/18 17:45:32 UTC
dependencies failed using branch attribute
Hi,
i tried to use the branch attribute inside my projekt DEV like this:
<ivy-module version="1.1">
<info ... module="DEV" ....
<dependency org="testng" name="testng"
branch="mybranch1" rev="latest.integration"
conf="compile,tests->default"/>
.....
If I now try to resolve my dependencies, it failed
because ivy 2.1.0 try to resolve the latest version (5.6) of
testng/testng
which has NO branch-keyword inside it's ivy.xml. The ivy.xml
of version testng/testng/4.6 contains the following:
<ivy-module version="1.1">
<info
organisation="testng" module="testng"
branch="mybranch1" revision="4.6.1.2"
status="release"
publication="20060227000000">
.....
It looks like the resolver skip this 4.6.1.2 version (which is the only
one containing the
branch attribute "mybranch1") and try to download the 5.6 (containing NO
branch attribute !).
I go the following error message:
[ivy:configure] :: Ivy 2.1.0 - 20090925235825 ::
http://ant.apache.org/ivy/ ::
...
---------------------------------------------------------------------
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: testng#testng#mybranch1;latest.integration:
several problems occured while resolving dependency:
testng#testng#mybranch1;latest.integration {compile=[default],
tests=[default]}:
[ivy:resolve] java.text.ParseException: inconsistent module descriptor
file found in 'I:\testng\testng\5.6\ivy.xml': bad branch name:
expected='mybranch1' found='null';
[ivy:resolve] java.text.ParseException: inconsistent module descriptor
file found in 'http://ivyrepos.dtnet.de/testng/testng/5.6/ivy.xml': bad
branch name: expected='mybranch1' found='null';
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :::: ERRORS
[ivy:resolve] shared-filesystem: bad branch name found in
I:\testng\testng\5.6\ivy.xml: expected='mybranch1 found='null'
[ivy:resolve] shared-web: bad branch name found in
http://ivyrepos.dtnet.de/testng/testng/5.6/ivy.xml: expected='mybranch1
found='null'
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Could somebody help me to track down the problem ?
regards
Danny
RE: dependencies failed using branch attribute
Posted by Daniel Schwager <Da...@dtnet.de>.
Hi Carlton,
thanks for this information. I tried your approach
but it does not work for me.
I create a VERY small sample project (build.xml & ivy.xml)
using a sample ivyrepos on our server.
Could somebody look closer to the problem by downloading the project
from
http://www.opensource-online.org/fileadmin/swd/ivy/ivy-test.zip
To run, yust unzip and start "ant -f build.xml" and you can see the
failure:
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: testng#testng#mybranch1;latest.integration:
java.text.ParseException: inconsistent module descriptor file found in
'http:/
www.opensource-online.org/fileadmin/swd/ivy/testng/testng/5.6/ivy.xml':
bad branch name: expected='mybranch1' found='';
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :::: ERRORS
[ivy:resolve] default: bad branch name found in
http://www.opensource-online.org/fileadmin/swd/ivy/testng/testng/5.6/ivy
.xml: expected='myb
anch1 found=''
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
May I should file a bug to jira ?
regards
Danny
RE: dependencies failed using branch attribute
Posted by Carlton Brown <cb...@silverpop.com>.
> -----Original Message-----
> From: Daniel Schwager [mailto:Daniel.Schwager@dtnet.de]
> Sent: Wednesday, November 18, 2009 11:46 AM
> To: ivy-user@ant.apache.org
> Subject: dependencies failed using branch attribute
>
> file found in 'http://ivyrepos.dtnet.de/testng/testng/5.6/ivy.xml':
bad
> branch name: expected='mybranch1' found='null';
I have dealt with this error by setting checkconsistency=false on the
resolver temporarily. Then I went back and reconfigured my repository
so that the patterns all include the [branch] token. I don't know why
it should be necessary to do this.
-Carlton
***CONFIDENTIALITY NOTICE and DISCLAIMER***
This message and any attachment are confidential and may be
privileged or otherwise protected from disclosure and solely for
the use of the person(s) or entity to whom it is intended. If you
have received this message in error and are not the intended
recipient, please notify the sender immediately and delete this
message and any attachment from your system. If you are not the
intended recipient, be advised that any use of this message is
prohibited and may be unlawful, and you must not copy this
message or attachment or disclose the contents to any other person.
Re: dependencies failed using branch attribute
Posted by Juha Ranta <ju...@iki.fi>.
Daniel Schwager wrote:
>
> Hi,
>
> i tried to use the branch attribute inside my projekt DEV like this:
>
> <ivy-module version="1.1">
> <info ... module="DEV" ....
>
> <dependency org="testng" name="testng"
> branch="mybranch1" rev="latest.integration"
> conf="compile,tests->default"/>
> .....
>
> If I now try to resolve my dependencies, it failed
> because ivy 2.1.0 try to resolve the latest version (5.6) of
> testng/testng
> which has NO branch-keyword inside it's ivy.xml. The ivy.xml
> of version testng/testng/4.6 contains the following:
> ...
>
When I saw your ivy.xml of the published module version 5.6, I think it had
an empty branch attribute branch="". Maybe Ivy doesn't like empty branch
names and that's why it doesn't like ivy.xml of version 5.6. If you want to
use the default branch, you can perhaps omit the branch attribute completely
and set the defaultBranch in ivysettings, or write the default branch name
there.
Juha
--
View this message in context: http://old.nabble.com/dependencies-failed-using-branch-attribute-tp26411302p26456326.html
Sent from the ivy-user mailing list archive at Nabble.com.