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 kaygee <ka...@gmail.com> on 2009/06/04 19:22:42 UTC

impossible to install ... contains revision 'X' more than once

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.


Re: impossible to install ... contains revision 'X' more than once

Posted by Kevin Gann <ka...@gmail.com>.
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 <ka...@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 <ad...@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 <ka...@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 <ka...@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.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>

Re: impossible to install ... contains revision 'X' more than once

Posted by Kevin Gann <ka...@gmail.com>.
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 <ad...@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 <ka...@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 <ka...@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.
>>>
>>>
>>>
>>>
>>
>>
>>
>

Re: impossible to install ... contains revision 'X' more than once

Posted by Adrian Woodhead <ad...@last.fm>.
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 <ka...@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 <ka...@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.
>>
>>
>>     
>
>   

Re: impossible to install ... contains revision 'X' more than once

Posted by kaygee <ka...@gmail.com>.
Hmm... Could you provide me some example files? You can reply directly to me
if you'd like...


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 <ka...@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 <ka...@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.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/impossible-to-install-...-contains-revision-%27X%27-more-than-once-tp23874329p23875034.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: impossible to install ... contains revision 'X' more than once

Posted by Joshua Tharp <jo...@alumni.calpoly.edu>.
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 <ka...@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 <ka...@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.
>
>

Re: impossible to install ... contains revision 'X' more than once

Posted by kaygee <ka...@gmail.com>.
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 <ka...@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.


Re: impossible to install ... contains revision 'X' more than once

Posted by Joshua Tharp <jo...@alumni.calpoly.edu>.
>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 <ka...@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.
>
>