ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Gann <kay...@gmail.com>
Subject Re: impossible to install ... contains revision 'X' more than once
Date Fri, 05 Jun 2009 14:14:09 GMT
I'm pretty certain that with Joshua's help I got things figured out... I
reread the tutorial at

http://ant.apache.org/ivy/history/trunk/tutorial/dependence.html

and went through the example again for publishing. Things now work for my
project!

On a side note I think my previous issue was that I was treating my local
repository as a filesystem repository, publishing to that, and using
ivy:install to publish to my svn repository. This was all in the same user
account and machine so it makes sense that when Ivy tried to install there
was already a revision there published in the cache. I'm uncertain if this
is desired behavior though as if you had multiple repositories on the same
machine you could only get it from a single place? I'm also uncertain if
this is just a side-affect of using ivy:install the wrong way.

Thanks again,
KG

On Thu, Jun 4, 2009 at 11:26 AM, Kevin Gann <kaygee@gmail.com> wrote:

> I don't think it's an ivysvn issue because if I look inside the
> .ivy2/cache/project I see the ivy-x.xml and ivydata-x.properties files
> already existing. My guess is that something has written to this before my
> ivy:install task is called. It's more likely a misconfiguration on my part.
>
>
> On Thu, Jun 4, 2009 at 11:07 AM, Adrian Woodhead <adrian@last.fm> wrote:
>
>> I've never used the install task either and have never seen it being used
>> with the IvySvn resolver so I'm not sure whether it supports it. If you feel
>> this is an IvySvn issue I suggest taking the question over to the IvySvn
>> group or raising an issue for it on the project site (
>> http://code.google.com/p/ivysvn/).
>>
>> Regards,
>>
>> Adrian
>>
>>
>> Joshua Tharp wrote:
>>
>>> I haven't used the install task, so I'm not sure. Personally, I use
>>> CruiseControl, build the jar file with one ant target and then use an
>>> AntPublisher to call ivy:publish with the proper resolver. It never gets
>>> installed in the "local" repository as part of a CI build. Maybe you can
>>> do
>>> the same thing with Hudson.
>>>
>>> On Thu, Jun 4, 2009 at 10:52 AM, kaygee <kaygee@gmail.com> wrote:
>>>
>>>
>>>
>>>> If I look in the repository (at least the svn one) it's not there...
>>>> that's
>>>> why I as curious if it could be a problem from calling ivy:resolve to do
>>>> the
>>>> build then ivy:install for the publish?
>>>>
>>>>
>>>> Joshua Tharp wrote:
>>>>
>>>>
>>>>> From the error it looks like you already have version 7 in your
>>>>> destination
>>>>> (svn) repsitory.
>>>>>
>>>>> On Thu, Jun 4, 2009 at 10:22 AM, kaygee <kaygee@gmail.com> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> I'm running my builds in Hudson and have two scheduled ant targets.
>>>>>> The
>>>>>> first
>>>>>> is to perform the build, the second is to publish from a filesystem
>>>>>> repository (which the project builds) to an ivysvn repository...
I've
>>>>>> seen
>>>>>> this error a couple times now and I'm looking to "fix" the problem...
>>>>>> to
>>>>>> get
>>>>>> it running again by deleting the ivydata-X.properties for the revision
>>>>>> indicated. Am I not supposed to call the ant tasks individually or
>>>>>> something
>>>>>> else?
>>>>>>
>>>>>> Here's my build output...
>>>>>>
>>>>>> [xml-its] $ ant -Dbuild.number=${BUILD_NUMBER} main
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> clean:
>>>>>>
>>>>>> ivy-init:
>>>>>>
>>>>>> ivy-download:
>>>>>>   [mkdir] Created dir:
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/ivy
>>>>>>    [echo] Installing Ivy...
>>>>>>     [get] Getting:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> http://ci.ii4sm.com:8080/archiva/repository/external-proxy/org/apache/ivy/ivy/2.1.0-rc1/ivy-2.1.0-rc1.jar
>>>>
>>>>
>>>>>     [get] To:
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/ivy/ivy.jar
>>>>>>
>>>>>> ivy-load:
>>>>>>
>>>>>> ivy-resolve:
>>>>>> [ivy:retrieve] :: Ivy 2.0.0 - 20090108225011 ::
>>>>>> http://ant.apache.org/ivy/
>>>>>> ::
>>>>>> :: loading settings :: file =
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/ivysettings.xml
>>>>>> IvySvn Build-Version: 2.0.0-rc2
>>>>>> IvySvn Build-DateTime: 2009-01-27 14:07:45
>>>>>> [ivy:retrieve] :: resolving dependencies ::
>>>>>> com.ii4sm#xml-its;working@17415-43073
>>>>>> [ivy:retrieve]  confs: [publish, build]
>>>>>> [ivy:retrieve]  found org.apache#log4j;1.2.15 in ii4sm.3rdparty.repo
>>>>>> [ivy:retrieve]  found org.testng#testng-jdk15;5.8 in
>>>>>> ii4sm.3rdparty.repo
>>>>>> [ivy:retrieve]  found org.apache#commons-lang;2.4 in
>>>>>> ii4sm.3rdparty.repo
>>>>>> [ivy:retrieve] :: resolution report :: resolve 132ms :: artifacts
dl
>>>>>> 7ms
>>>>>>
>>>>>>  ---------------------------------------------------------------------
>>>>>>       |                  |            modules            ||
>>>>>> artifacts
>>>>>> |
>>>>>>       |       conf       | number| search|dwnlded|evicted||
>>>>>> number|dwnlded|
>>>>>>
>>>>>>  ---------------------------------------------------------------------
>>>>>>       |      publish     |   0   |   0   |   0   |   0   ||   0 
 |
>>>>>> 0
>>>>>> |
>>>>>>       |       build      |   3   |   0   |   0   |   0   ||   3 
 |
>>>>>> 0
>>>>>> |
>>>>>>
>>>>>>  ---------------------------------------------------------------------
>>>>>> [ivy:retrieve] :: retrieving :: com.ii4sm#xml-its
>>>>>> [ivy:retrieve]  confs: [publish, build]
>>>>>> [ivy:retrieve]  3 artifacts copied, 0 already retrieved (1462kB/14ms)
>>>>>>
>>>>>> bind.schema:
>>>>>>     [xjc] Compiling
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> file:/home/jboss/.hudson/jobs/xml-its/workspace/xml-its/resources/xsd/Schemas/test.xsd
>>>>
>>>>
>>>>>     [xjc] removing old output files
>>>>>>     [xjc] Writing output to
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/generated-src/main
>>>>>>
>>>>>> compile:
>>>>>>   [mkdir] Created dir:
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/build/classes
>>>>>>   [mkdir] Created dir:
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/dist
>>>>>>   [javac] Compiling 1170 source files to
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/build/classes
>>>>>>   [javac] Note: Some input files use unchecked or unsafe operations.
>>>>>>   [javac] Note: Recompile with -Xlint:unchecked for details.
>>>>>>
>>>>>> jar:
>>>>>>   [mkdir] Created dir:
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/build/jar
>>>>>>     [jar] Building jar:
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/dist/xml-its-7.jar
>>>>>>
>>>>>> main:
>>>>>>
>>>>>> BUILD SUCCESSFUL
>>>>>> Total time: 15 seconds
>>>>>> [xml-its] $ ant -Dbuild.number=${BUILD_NUMBER} ivy-install-svn
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> ivy-init:
>>>>>>
>>>>>> ivy-download:
>>>>>>
>>>>>> ivy-load:
>>>>>>
>>>>>> ivy-install-svn:
>>>>>> [ivy:install] :: Ivy 2.0.0 - 20090108225011 ::
>>>>>> http://ant.apache.org/ivy/::
>>>>>> :: loading settings :: file =
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/ivysettings.xml
>>>>>> IvySvn Build-Version: 2.0.0-rc2
>>>>>> IvySvn Build-DateTime: 2009-01-27 14:07:45
>>>>>> [ivy:install] :: installing com.ii4sm#xml-its;7 ::
>>>>>> [ivy:install] :: resolving dependencies ::
>>>>>> [ivy:install]   found com.ii4sm#xml-its;7 in project-build-dist
>>>>>> [ivy:install] :: downloading artifacts to cache ::
>>>>>> [ivy:install] downloading
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/dist/xml-its-7.jar
>>>>>>
>>>>>>
>>>>> ...
>>>>
>>>>
>>>>> [ivy:install] ................ (905kB)
>>>>>> [ivy:install]   [SUCCESSFUL ] com.ii4sm#xml-its;7!xml-its.jar (9ms)
>>>>>> [ivy:install] :: installing in ii4sm.internal.repo ::
>>>>>> [ivy:install] Scheduling publish to
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> http://dev.ii4sm.com/svn/dev/ivy/internal/com.ii4sm/xml-its/7/xml-its.jar
>>>>
>>>>
>>>>> [ivy:install] Commit transaction not started, nothing to abort
>>>>>>
>>>>>> BUILD FAILED
>>>>>> /home/jboss/.hudson/jobs/xml-its/workspace/xml-its/ivy.build.xml:19:
>>>>>> impossible to install com.ii4sm#xml-its;7:
>>>>>> java.lang.IllegalStateException:
>>>>>> Ivy destination folder 'ivy/internal/com.ii4sm/xml-its/7' contains
>>>>>> revision
>>>>>> '7' more than once
>>>>>>
>>>>>> Total time: 0 seconds
>>>>>> Finished: FAILURE
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> http://www.nabble.com/impossible-to-install-...-contains-revision-%27X%27-more-than-once-tp23874329p23874329.html
>>>>
>>>>
>>>>> Sent from the ivy-user mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>>
>>>> http://www.nabble.com/impossible-to-install-...-contains-revision-%27X%27-more-than-once-tp23874329p23874796.html
>>>> Sent from the ivy-user mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message