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 Garry Smith <g....@reading.ac.uk> on 2008/10/14 17:53:33 UTC

newbie: Instructions on hosting enterprise repository

Hi,

Apologies for the newbie question.

I want to set up an enterprise repository that the developers on my 
project can submit to using the publish ivy task, from their development 
machines.

The 'repository machine' has apache 2 and also Subversion (behind apache 2)

The instructions at 
http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html 
concentrate on creating the repository locally but not about access.

Can you point me to further information?

The question has popped up a few times in the archive, but I didn't see 
a definitive answer.

I was thinking to host the ivy repo via SVN. Is this sensible? Any gotchas?

thanks in advance

Garry




Re: newbie: Instructions on hosting enterprise repository

Posted by Adrian Woodhead <ad...@last.fm>.
Garry Smith wrote:
> OK. I assume that you still generated sha1 and md5 files for each jar?
No, we didn't think it was worth the effort for how we use it and really 
wanted to keep the process for adding new artifacts as simple as 
possible, even if it meant taking a few short cuts.

Adrian


Re: newbie: Instructions on hosting enterprise repository

Posted by Garry Smith <g....@reading.ac.uk>.
Hi,


Adrian Woodhead wrote:
>
> Garry Smith wrote:
>> That is good to hear.  We currently have jars in our SVN that are 
>> organised in the same way you mention (by 
>> organisation/module/version). To move to the Ivy way of resolving 
>> dependencies it sounds like we just have to include the appropriate 
>> ivy metatdata for each existing jar.   I will have a play with the 
>> 'creating a repository' tutorial to get an idea of the ivy 
>> configuration files that will be needed in the SVN.
> We found that for most cases we could just put the jar files in with 
> no extra metadata and only in exceptional cases (e.g.jars which depend 
> on other jars, a module consisting of more than one jar, the jar file 
> name different to the module name) did we need to also add ivy.xml files.

OK. I assume that you still generated sha1 and md5 files for each jar?

At the moment I am playing with taking some 3rd party jars and using the 
publish-local ivy ant task (see below) to add a jar to the local Ivy 
repository. I end up with the following in the local repository:

~/.ivy2/local/org.apache $ find .
.
./junit-dep
./junit-dep/4.4
./junit-dep/4.4/jars
./junit-dep/4.4/jars/junit-dep.jar
./junit-dep/4.4/jars/junit-dep.jar.sha1
./junit-dep/4.4/jars/junit-dep.jar.md5
./junit-dep/4.4/ivys
./junit-dep/4.4/ivys/ivy.xml
./junit-dep/4.4/ivys/ivy.xml.sha1
./junit-dep/4.4/ivys/ivy.xml.md5
./log4j
./log4j/1.2.15
./log4j/1.2.15/jars
./log4j/1.2.15/jars/log4j.jar
./log4j/1.2.15/jars/log4j.jar.sha1
./log4j/1.2.15/jars/log4j.jar.md5
./log4j/1.2.15/ivys
./log4j/1.2.15/ivys/ivy.xml
./log4j/1.2.15/ivys/ivy.xml.sha1
./log4j/1.2.15/ivys/ivy.xml.md5


I am thinking to knock a script up to do this enmasse for our 
dependencies. Is there a common Ivy way to do this already?

cheers

Garry














Re: newbie: Instructions on hosting enterprise repository

Posted by Adrian Woodhead <ad...@last.fm>.
Garry Smith wrote:
> That is good to hear.  We currently have jars in our SVN that are 
> organised in the same way you mention (by 
> organisation/module/version). To move to the Ivy way of resolving 
> dependencies it sounds like we just have to include the appropriate 
> ivy metatdata for each existing jar.   I will have a play with the 
> 'creating a repository' tutorial to get an idea of the ivy 
> configuration files that will be needed in the SVN.
We found that for most cases we could just put the jar files in with no 
extra metadata and only in exceptional cases (e.g.jars which depend on 
other jars, a module consisting of more than one jar, the jar file name 
different to the module name) did we need to also add ivy.xml files.

> Great! This would fit my project's needs. Some of our developer's 
> don't want to build the components written by other developers in our 
> team.  They would rather each developer  uploads  a binary version of 
> their component(s) to a repository, which all other developer's then 
> retrieve as part of their build. Hence my arrival at the Ivy website 
> the other day.  I also want our automated builds to build all project 
> components from source daily (not that I don't trust the developers, 
> but... :-) )
Yup, this is exactly what we do and why Ivy was such a help in allowing 
sharing of functionality between different projects.

> On a side note, if we decided not to use SVN to host the Ivy 
> repository, but still wanted developers to check in modules from their 
> development machines, what would be the recommended setup? Are people 
> using Apache2 and Webdav to do this natively from Ivy? Is there 
> another recommended way that works natively from Ivy?
I'm pretty sure quite a few people go the Apache/Webdav route, not sure 
about other approaches, maybe someone else wants to comment?


Re: newbie: Instructions on hosting enterprise repository

Posted by Garry Smith <g....@reading.ac.uk>.
Hi Adrian,


Adrian Woodhead wrote:
> Garry Smith wrote:
>>
>> I want to set up an enterprise repository that the developers on my 
>> project can submit to using the publish ivy task, from their 
>> development machines.
>>
>> The 'repository machine' has apache 2 and also Subversion (behind 
>> apache 2)
>>
>> The instructions at 
>> http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html 
>> concentrate on creating the repository locally but not about access.
>>
>> I was thinking to host the ivy repo via SVN. Is this sensible? Any 
>> gotchas?
>>
>>
>>

> This initial overhead was well worth the productivity gains we see now 
> with most libraries already there. What definitely helped was having a 
> well-communicated, logical, standard layout of 
> organisation/module/version that is enforced across all artifacts 
> added to the repository.

That is good to hear.  We currently have jars in our SVN that are 
organised in the same way you mention (by organisation/module/version). 
To move to the Ivy way of resolving dependencies it sounds like we just 
have to include the appropriate ivy metatdata for each existing jar.   I 
will have a play with the 'creating a repository' tutorial to get an 
idea of the ivy configuration files that will be needed in the SVN.

>
> We also have many projects which publish various artifacts (jar, war, 
> tgz etc.) to the same Subversion repository and these then get used by 
> other systems (which retrieve the artifacts either using Ivy or "svn 
> export" commands).

Great! This would fit my project's needs. Some of our developer's don't 
want to build the components written by other developers in our team.  
They would rather each developer  uploads  a binary version of their 
component(s) to a repository, which all other developer's then retrieve 
as part of their build. Hence my arrival at the Ivy website the other 
day.  I also want our automated builds to build all project components 
from source daily (not that I don't trust the developers, but... :-) )


>
> <shameless plug>
> If you are thinking of using Subversion to store your Ivy repository, 
> we use IvySvn:
>
> http://code.google.com/p/ivysvn/

Thanks. This is something that I will definitely be looking at.

>
> (we wrote most of it ;) ) There are some known issues relating to web 
> dav and repository roots with nested folders so give it a go before 
> committing to anything (and please report any issues you experience to 
> the IvySvn project so we can look at them).

Thank you I will.


On a side note, if we decided not to use SVN to host the Ivy repository, 
but still wanted developers to check in modules from their development 
machines, what would be the recommended setup? Are people using Apache2 
and Webdav to do this natively from Ivy? Is there another recommended 
way that works natively from Ivy?

Thanks and regards

Garry


>
>
> Garry Smith wrote:
>> Hi,
>>
>> Apologies for the newbie question.
>>
>> I want to set up an enterprise repository that the developers on my 
>> project can submit to using the publish ivy task, from their 
>> development machines.
>>
>> The 'repository machine' has apache 2 and also Subversion (behind 
>> apache 2)
>>
>> The instructions at 
>> http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html 
>> concentrate on creating the repository locally but not about access.
>>
>> Can you point me to further information?
>>
>> The question has popped up a few times in the archive, but I didn't 
>> see a definitive answer.
>>
>> I was thinking to host the ivy repo via SVN. Is this sensible? Any 
>> gotchas?
>>
>> thanks in advance
>>
>> Garry
>>
>>
>>
>

Re: newbie: Instructions on hosting enterprise repository

Posted by Adrian Woodhead <ad...@last.fm>.
Hey Garry,

Seeing as this is specific to IvySvn I suggest we take this discussion 
off the main Ivy mailing list. I'll mail you back in person in a minute. 
In future it's better to use the IvySvn mailing list for IvySvn specific 
stuff:

http://groups.google.com/group/ivysvn?pli=1

Adrian



Garry Smith wrote:
> Hi again,
>
> Just to note the path in my previous email contains a ':'
>
> repositoryRoot="svn+ssh://covent.rdg.ac.uk:/var/svn/repos"
>
> This was me playing just to see what happened Ordinarily the 
> repositoryRoot="svn+ssh://covent.rdg.ac.uk/var/svn/repos"
>
> cheers
>
> Garry
>
>
> Garry Smith wrote:
>> Hi Adrian,
>>
>> I lieu of finding a fix for the IvySVN https:// path issues I am 
>> having a play with IvySVN access over svn+ssh://, but even that is 
>> failing for me. I must have missed something simple, but I can't spot 
>> it at the moment. Any ideas? Did you come across this issue in your 
>> setup?
>>
>>
>> Overview
>> --------------
>> 'ant -v -d publish' results in:
>>
>> [ivy:publish] Transaction not created, nothing to abort
>>
>> BUILD FAILED
>> /home/gms/workspace/TRY-GMS-ivy/build-bootstrap/ivy-build.xml:157: 
>> impossible to publish artifacts for 
>> eu.sormaproject#sorma-common;working@obufk
>>
>> ... and ...
>>
>> org.tmatesoft.svn.core.SVNException: svn: Malformed network data
>>        at 
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561) 
>>
>>
>> (see below for the full trace)
>>
>>
>> If I 'svn co' from the command line, I get prompted for the ssh 
>> password twice. Thereafter I get prompted for the password each time 
>> I issue an SVN command as expected. I use the same password and 
>> account details on the command line as I do from Ivy.
>>
>>
>> Details
>> -----------
>>
>> Ivy svn config:
>>
>> <ivysettings>
>>  <typedef name="svn" 
>> classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>
>>    <resolvers>
>>    <svn name="sorma"
>>             repositoryRoot="svn+ssh://covent.rdg.ac.uk:/var/svn/repos"
>>             userName="${svn.user.name}"
>>             userPassword="${svn.user.password}">
>>      <ivy pattern="[organisation]/[module]/[revision]/ivy.xml"/>
>>      <artifact 
>> pattern="[organisation]/[module]/[revision]/[artifact].[ext]"/>
>>    </svn>
>>  </resolvers> </ivysettings>
>>
>>
>> Tailing the log on the server I can see that an SSH connection for 
>> the user is opened successfully and then closed immediately.
>>
>>
>>
>>
>>
>>
>> publish:
>> Setting project property: revision -> 0.7
>>   [delete] Could not find file 
>> /home/gms/workspace/TRY-GMS-ivy/common/build/ivy.xml to delete.
>> [ivy:publish] parameter found as ivy variable: 
>> ivy.organisation=eu.sormaproject
>> [ivy:publish] parameter found as ivy variable: ivy.module=sorma-common
>> [ivy:publish] parameter found as ivy variable: 
>> ivy.revision=working@obufki
>> [ivy:publish] parameter found as attribute value: 
>> ivy.deliver.revision=0.7
>> [ivy:publish] parameter found as attribute value: ivy.status=release
>> [ivy:publish] parameter found as attribute value: 
>> ivy.organisation=eu.sormaproject
>> [ivy:publish] parameter found as attribute value: 
>> ivy.module=sorma-common
>> [ivy:publish] parameter found as attribute value: 
>> ivy.revision=working@obufki
>> [ivy:publish] parameter found as attribute value: 
>> ivy.deliver.revision=0.7
>> [ivy:publish] parameter found as attribute value: 
>> ivy.deliver.ivy.pattern=/home/gms/workspace/TRY-GMS-ivy/common/build/[artifact].[ext] 
>>
>> [ivy:publish] parameter found as attribute value: ivy.status=release
>> [ivy:publish] parameter not found: ivy.delivery.list.file
>>   +Task: property
>> [property] Loading /tmp/delivery.properties
>> [property] Unable to find property file: /tmp/delivery.properties
>> [ivy:publish] :: delivering :: 
>> eu.sormaproject#sorma-common;working@obufki :: 0.7 :: release :: Fri 
>> Oct 24 12:15:24 BST 2008
>> [ivy:publish]   options = status=release pubdate=Fri Oct 24 12:15:24 
>> BST 2008 validate=true resolveDynamicRevisions=true resolveId=null
>> [ivy:publish] post 1.3 ivy file: using exact as default matcher
>> [ivy:publish]   delivering ivy file to 
>> /home/gms/workspace/TRY-GMS-ivy/common/build/ivy.xml
>> [ivy:publish]   deliver done (20ms)
>> [ivy:publish] :: publishing :: eu.sormaproject#sorma-common
>> [ivy:publish]   validate = true
>> [ivy:publish] post 1.3 ivy file: using exact as default matcher
>> [ivy:publish] Starting transaction eu.sormaproject#sorma-common;0.7...
>> [ivy:publish] Scheduling publish from 
>> /home/gms/workspace/TRY-GMS-ivy/common/build/sorma-common.jar to 
>> svn+ssh://covent.rdg.ac.uk:/var/svn/repos/
>> eu.sormaproject/sorma-common/0.7/sorma-common.jar
>> [ivy:publish] Adding SSH user/pass authentication
>> [ivy:publish] Transaction not created, nothing to abort
>>
>> BUILD FAILED
>> /home/gms/workspace/TRY-GMS-ivy/build-bootstrap/ivy-build.xml:157: 
>> impossible to publish artifacts for 
>> eu.sormaproject#sorma-common;working@obufk
>> i: java.io.IOException
>>        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311)
>>        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>>        at 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at 
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>>
>>        at org.apache.tools.ant.Task.perform(Task.java:348)
>>        at org.apache.tools.ant.Target.execute(Target.java:357)
>>        at org.apache.tools.ant.Target.performTasks(Target.java:385)
>>        at 
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>>        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>>        at 
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>>
>>        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>>        at org.apache.tools.ant.Main.runBuild(Main.java:698)
>>        at org.apache.tools.ant.Main.startAnt(Main.java:199)
>>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>> Caused by: java.io.IOException
>>        at 
>> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:272) 
>>
>>        at 
>> org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) 
>>
>>        at 
>> org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:197) 
>>
>>        at 
>> org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:187) 
>>
>>        at 
>> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242) 
>>
>>        at 
>> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195) 
>>
>>        at 
>> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156) 
>>
>>        at org.apache.ivy.Ivy.publish(Ivy.java:606)
>>        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
>>        ... 17 more
>> Caused by: org.tmatesoft.svn.core.SVNException: svn: Malformed 
>> network data
>>        at 
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:293) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.receiveRepositoryCredentials(SVNConnection.java:200) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:190) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:997) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:975) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.setLocation(SVNRepositoryImpl.java:94) 
>>
>>        at 
>> fm.last.ivy.plugins.svnresolver.SvnRepository.getRepository(SvnRepository.java:181) 
>>
>>        at 
>> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:259) 
>>
>>        ... 25 more
>> --- Nested Exception ---
>> java.io.IOException
>>        at 
>> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:272) 
>>
>>        at 
>> org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) 
>>
>>        at 
>> org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:197) 
>>
>>        at 
>> org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:187) 
>>
>>        at 
>> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242) 
>>
>>        at 
>> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195) 
>>
>>        at 
>> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156) 
>>
>>        at org.apache.ivy.Ivy.publish(Ivy.java:606)
>>        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
>>        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>>        at 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>>        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>>        at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at 
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>>
>>        at org.apache.tools.ant.Task.perform(Task.java:348)
>>        at org.apache.tools.ant.Target.execute(Target.java:357)
>>        at org.apache.tools.ant.Target.performTasks(Target.java:385)
>>        at 
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>>        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>>        at 
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>>
>>        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>>        at org.apache.tools.ant.Main.runBuild(Main.java:698)
>>        at org.apache.tools.ant.Main.startAnt(Main.java:199)
>>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>> Caused by: org.tmatesoft.svn.core.SVNException: svn: Malformed 
>> network data
>>        at 
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:293) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.receiveRepositoryCredentials(SVNConnection.java:200) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:190) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:997) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:975) 
>>
>>        at 
>> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.setLocation(SVNRepositoryImpl.java:94) 
>>
>>        at 
>> fm.last.ivy.plugins.svnresolver.SvnRepository.getRepository(SvnRepository.java:181) 
>>
>>        at 
>> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:259) 
>>
>>        ... 25 more
>>
>> Thanks in advance
>>
>> Garry
>>
>>
>>
>>

Re: newbie: Instructions on hosting enterprise repository

Posted by Garry Smith <g....@reading.ac.uk>.
Hi again,

Just to note the path in my previous email contains a ':'

repositoryRoot="svn+ssh://covent.rdg.ac.uk:/var/svn/repos"

This was me playing just to see what happened Ordinarily the 
repositoryRoot="svn+ssh://covent.rdg.ac.uk/var/svn/repos"

cheers

Garry


Garry Smith wrote:
> Hi Adrian,
>
> I lieu of finding a fix for the IvySVN https:// path issues I am 
> having a play with IvySVN access over svn+ssh://, but even that is 
> failing for me. I must have missed something simple, but I can't spot 
> it at the moment. Any ideas? Did you come across this issue in your 
> setup?
>
>
> Overview
> --------------
> 'ant -v -d publish' results in:
>
> [ivy:publish] Transaction not created, nothing to abort
>
> BUILD FAILED
> /home/gms/workspace/TRY-GMS-ivy/build-bootstrap/ivy-build.xml:157: 
> impossible to publish artifacts for 
> eu.sormaproject#sorma-common;working@obufk
>
> ... and ...
>
> org.tmatesoft.svn.core.SVNException: svn: Malformed network data
>        at 
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561) 
>
>
> (see below for the full trace)
>
>
> If I 'svn co' from the command line, I get prompted for the ssh 
> password twice. Thereafter I get prompted for the password each time I 
> issue an SVN command as expected. I use the same password and account 
> details on the command line as I do from Ivy.
>
>
> Details
> -----------
>
> Ivy svn config:
>
> <ivysettings>
>  <typedef name="svn" 
> classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>
>    <resolvers>
>    <svn name="sorma"
>             repositoryRoot="svn+ssh://covent.rdg.ac.uk:/var/svn/repos"
>             userName="${svn.user.name}"
>             userPassword="${svn.user.password}">
>      <ivy pattern="[organisation]/[module]/[revision]/ivy.xml"/>
>      <artifact 
> pattern="[organisation]/[module]/[revision]/[artifact].[ext]"/>
>    </svn>
>  </resolvers> </ivysettings>
>
>
> Tailing the log on the server I can see that an SSH connection for the 
> user is opened successfully and then closed immediately.
>
>
>
>
>
>
> publish:
> Setting project property: revision -> 0.7
>   [delete] Could not find file 
> /home/gms/workspace/TRY-GMS-ivy/common/build/ivy.xml to delete.
> [ivy:publish] parameter found as ivy variable: 
> ivy.organisation=eu.sormaproject
> [ivy:publish] parameter found as ivy variable: ivy.module=sorma-common
> [ivy:publish] parameter found as ivy variable: 
> ivy.revision=working@obufki
> [ivy:publish] parameter found as attribute value: 
> ivy.deliver.revision=0.7
> [ivy:publish] parameter found as attribute value: ivy.status=release
> [ivy:publish] parameter found as attribute value: 
> ivy.organisation=eu.sormaproject
> [ivy:publish] parameter found as attribute value: ivy.module=sorma-common
> [ivy:publish] parameter found as attribute value: 
> ivy.revision=working@obufki
> [ivy:publish] parameter found as attribute value: 
> ivy.deliver.revision=0.7
> [ivy:publish] parameter found as attribute value: 
> ivy.deliver.ivy.pattern=/home/gms/workspace/TRY-GMS-ivy/common/build/[artifact].[ext] 
>
> [ivy:publish] parameter found as attribute value: ivy.status=release
> [ivy:publish] parameter not found: ivy.delivery.list.file
>   +Task: property
> [property] Loading /tmp/delivery.properties
> [property] Unable to find property file: /tmp/delivery.properties
> [ivy:publish] :: delivering :: 
> eu.sormaproject#sorma-common;working@obufki :: 0.7 :: release :: Fri 
> Oct 24 12:15:24 BST 2008
> [ivy:publish]   options = status=release pubdate=Fri Oct 24 12:15:24 
> BST 2008 validate=true resolveDynamicRevisions=true resolveId=null
> [ivy:publish] post 1.3 ivy file: using exact as default matcher
> [ivy:publish]   delivering ivy file to 
> /home/gms/workspace/TRY-GMS-ivy/common/build/ivy.xml
> [ivy:publish]   deliver done (20ms)
> [ivy:publish] :: publishing :: eu.sormaproject#sorma-common
> [ivy:publish]   validate = true
> [ivy:publish] post 1.3 ivy file: using exact as default matcher
> [ivy:publish] Starting transaction eu.sormaproject#sorma-common;0.7...
> [ivy:publish] Scheduling publish from 
> /home/gms/workspace/TRY-GMS-ivy/common/build/sorma-common.jar to 
> svn+ssh://covent.rdg.ac.uk:/var/svn/repos/
> eu.sormaproject/sorma-common/0.7/sorma-common.jar
> [ivy:publish] Adding SSH user/pass authentication
> [ivy:publish] Transaction not created, nothing to abort
>
> BUILD FAILED
> /home/gms/workspace/TRY-GMS-ivy/build-bootstrap/ivy-build.xml:157: 
> impossible to publish artifacts for 
> eu.sormaproject#sorma-common;working@obufk
> i: java.io.IOException
>        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311)
>        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>        at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.Target.execute(Target.java:357)
>        at org.apache.tools.ant.Target.performTasks(Target.java:385)
>        at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>        at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>
>        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>        at org.apache.tools.ant.Main.runBuild(Main.java:698)
>        at org.apache.tools.ant.Main.startAnt(Main.java:199)
>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: java.io.IOException
>        at 
> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:272)
>        at 
> org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) 
>
>        at 
> org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:197) 
>
>        at 
> org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:187) 
>
>        at 
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242)
>        at 
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195)
>        at 
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156)
>        at org.apache.ivy.Ivy.publish(Ivy.java:606)
>        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
>        ... 17 more
> Caused by: org.tmatesoft.svn.core.SVNException: svn: Malformed network 
> data
>        at 
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:293) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.receiveRepositoryCredentials(SVNConnection.java:200) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:190) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:997) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:975) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.setLocation(SVNRepositoryImpl.java:94) 
>
>        at 
> fm.last.ivy.plugins.svnresolver.SvnRepository.getRepository(SvnRepository.java:181) 
>
>        at 
> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:259)
>        ... 25 more
> --- Nested Exception ---
> java.io.IOException
>        at 
> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:272)
>        at 
> org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) 
>
>        at 
> org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:197) 
>
>        at 
> org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:187) 
>
>        at 
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242)
>        at 
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195)
>        at 
> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156)
>        at org.apache.ivy.Ivy.publish(Ivy.java:606)
>        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
>        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
>        at 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at 
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) 
>
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.Target.execute(Target.java:357)
>        at org.apache.tools.ant.Target.performTasks(Target.java:385)
>        at 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>        at 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
>
>        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>        at org.apache.tools.ant.Main.runBuild(Main.java:698)
>        at org.apache.tools.ant.Main.startAnt(Main.java:199)
>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: org.tmatesoft.svn.core.SVNException: svn: Malformed network 
> data
>        at 
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:293) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.receiveRepositoryCredentials(SVNConnection.java:200) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:190) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:997) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:975) 
>
>        at 
> org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.setLocation(SVNRepositoryImpl.java:94) 
>
>        at 
> fm.last.ivy.plugins.svnresolver.SvnRepository.getRepository(SvnRepository.java:181) 
>
>        at 
> fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:259)
>        ... 25 more
>
> Thanks in advance
>
> Garry
>
>
>
>

Re: newbie: Instructions on hosting enterprise repository

Posted by Garry Smith <g....@reading.ac.uk>.
Hi Adrian,

I lieu of finding a fix for the IvySVN https:// path issues I am having 
a play with IvySVN access over svn+ssh://, but even that is failing for 
me. I must have missed something simple, but I can't spot it at the 
moment. Any ideas? Did you come across this issue in your setup?


Overview
--------------
'ant -v -d publish' results in:

[ivy:publish] Transaction not created, nothing to abort

BUILD FAILED
/home/gms/workspace/TRY-GMS-ivy/build-bootstrap/ivy-build.xml:157: 
impossible to publish artifacts for 
eu.sormaproject#sorma-common;working@obufk

... and ...

org.tmatesoft.svn.core.SVNException: svn: Malformed network data
        at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561)

(see below for the full trace)


If I 'svn co' from the command line, I get prompted for the ssh password 
twice. Thereafter I get prompted for the password each time I issue an 
SVN command as expected. I use the same password and account details on 
the command line as I do from Ivy.


Details
-----------

Ivy svn config:

<ivysettings>
  <typedef name="svn" 
classname="fm.last.ivy.plugins.svnresolver.SvnResolver"/>
    <resolvers>
    <svn name="sorma"
             repositoryRoot="svn+ssh://covent.rdg.ac.uk:/var/svn/repos"
             userName="${svn.user.name}"
             userPassword="${svn.user.password}">
      <ivy pattern="[organisation]/[module]/[revision]/ivy.xml"/>
      <artifact 
pattern="[organisation]/[module]/[revision]/[artifact].[ext]"/>
    </svn>
  </resolvers> 
</ivysettings>


Tailing the log on the server I can see that an SSH connection for the 
user is opened successfully and then closed immediately.






publish:
Setting project property: revision -> 0.7
   [delete] Could not find file 
/home/gms/workspace/TRY-GMS-ivy/common/build/ivy.xml to delete.
[ivy:publish] parameter found as ivy variable: 
ivy.organisation=eu.sormaproject
[ivy:publish] parameter found as ivy variable: ivy.module=sorma-common
[ivy:publish] parameter found as ivy variable: ivy.revision=working@obufki
[ivy:publish] parameter found as attribute value: ivy.deliver.revision=0.7
[ivy:publish] parameter found as attribute value: ivy.status=release
[ivy:publish] parameter found as attribute value: 
ivy.organisation=eu.sormaproject
[ivy:publish] parameter found as attribute value: ivy.module=sorma-common
[ivy:publish] parameter found as attribute value: 
ivy.revision=working@obufki
[ivy:publish] parameter found as attribute value: ivy.deliver.revision=0.7
[ivy:publish] parameter found as attribute value: 
ivy.deliver.ivy.pattern=/home/gms/workspace/TRY-GMS-ivy/common/build/[artifact].[ext]
[ivy:publish] parameter found as attribute value: ivy.status=release
[ivy:publish] parameter not found: ivy.delivery.list.file
   +Task: property
 [property] Loading /tmp/delivery.properties
 [property] Unable to find property file: /tmp/delivery.properties
[ivy:publish] :: delivering :: 
eu.sormaproject#sorma-common;working@obufki :: 0.7 :: release :: Fri Oct 
24 12:15:24 BST 2008
[ivy:publish]   options = status=release pubdate=Fri Oct 24 12:15:24 BST 
2008 validate=true resolveDynamicRevisions=true resolveId=null
[ivy:publish] post 1.3 ivy file: using exact as default matcher
[ivy:publish]   delivering ivy file to 
/home/gms/workspace/TRY-GMS-ivy/common/build/ivy.xml
[ivy:publish]   deliver done (20ms)
[ivy:publish] :: publishing :: eu.sormaproject#sorma-common
[ivy:publish]   validate = true
[ivy:publish] post 1.3 ivy file: using exact as default matcher
[ivy:publish] Starting transaction eu.sormaproject#sorma-common;0.7...
[ivy:publish] Scheduling publish from 
/home/gms/workspace/TRY-GMS-ivy/common/build/sorma-common.jar to 
svn+ssh://covent.rdg.ac.uk:/var/svn/repos/
eu.sormaproject/sorma-common/0.7/sorma-common.jar
[ivy:publish] Adding SSH user/pass authentication
[ivy:publish] Transaction not created, nothing to abort

BUILD FAILED
/home/gms/workspace/TRY-GMS-ivy/build-bootstrap/ivy-build.xml:157: 
impossible to publish artifacts for 
eu.sormaproject#sorma-common;working@obufk
i: java.io.IOException
        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.io.IOException
        at 
fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:272)
        at 
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
        at 
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:197)
        at 
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:187)
        at 
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242)
        at 
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195)
        at 
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156)
        at org.apache.ivy.Ivy.publish(Ivy.java:606)
        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
        ... 17 more
Caused by: org.tmatesoft.svn.core.SVNException: svn: Malformed network data
        at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:293)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.receiveRepositoryCredentials(SVNConnection.java:200)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:190)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:997)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:975)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.setLocation(SVNRepositoryImpl.java:94)
        at 
fm.last.ivy.plugins.svnresolver.SvnRepository.getRepository(SvnRepository.java:181)
        at 
fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:259)
        ... 25 more
--- Nested Exception ---
java.io.IOException
        at 
fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:272)
        at 
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
        at 
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:197)
        at 
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:187)
        at 
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:242)
        at 
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:195)
        at 
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:156)
        at org.apache.ivy.Ivy.publish(Ivy.java:606)
        at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:289)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: org.tmatesoft.svn.core.SVNException: svn: Malformed network data
        at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:55)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNReader.readChar(SVNReader.java:561)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:293)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:238)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.receiveRepositoryCredentials(SVNConnection.java:200)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:190)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:997)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:975)
        at 
org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.setLocation(SVNRepositoryImpl.java:94)
        at 
fm.last.ivy.plugins.svnresolver.SvnRepository.getRepository(SvnRepository.java:181)
        at 
fm.last.ivy.plugins.svnresolver.SvnRepository.put(SvnRepository.java:259)
        ... 25 more

Thanks in advance

Garry




Re: newbie: Instructions on hosting enterprise repository

Posted by Adrian Woodhead <ad...@last.fm>.
>
> First of all: Well done to everyone working on Ivy and Ivy SVN. This 
> is a great system!
>
> Alas I have stumbled at the final hurdle!
>
> Adrian could you comment on the following please?:
>
> http://code.google.com/p/ivysvn/issues/detail?id=12
>
> What are you doing at the moment to avoid this issue at Last.fm?
>
> Are you using https:// or svn+ssh to access your Ivy repository?

svn+ssh. The issue you are talking about is well known and only occurs 
when IvySvn is used over Webdav.

> I am hoping to get time later to look at the IvySVN source and see if 
> I can make sense of the problem.  Do you know how close the Ivy SVN 
> team is to working on or solving the problem (it appears that the bug 
> manifests itself in a variety of guises across across 3 bug reports).

There has been quite a in-depth look at what causes this and it is due 
to an inconsistency in the way SVNKit (the library used to access 
Subversion) handles paths in their webdav implementation compared to the 
other protocols. Unfortunately there is no quick/easy fix for this. The 
best description is comment number 4 here

http://code.google.com/p/ivysvn/issues/detail?id=8

If you are interested in trying to help fix this issue mail me directly 
and I can give you some pointers. I myself plan to have a go at this 
when I next have a bit of free time available.


Re: newbie: Instructions on hosting enterprise repository

Posted by Garry Smith <g....@reading.ac.uk>.
Hi Adrian,

Adrian Woodhead wrote:
> Hey Garry,
>
> At Last.fm we have an Ivy repository in Subversion which contains 
> hundreds of third party libraries that our projects depend on. It was 
> a bit of work setting this up, but this was split among the 
> development team who added libraries as they needed them. This initial 
> overhead was well worth the productivity gains we see now with most 
> libraries already there. What definitely helped was having a 
> well-communicated, logical, standard layout of 
> organisation/module/version that is enforced across all artifacts 
> added to the repository.
>
> We also have many projects which publish various artifacts (jar, war, 
> tgz etc.) to the same Subversion repository and these then get used by 
> other systems (which retrieve the artifacts either using Ivy or "svn 
> export" commands). This repository has been in heavy use daily for 
> over a year now and has served us extremely well.
>
> <shameless plug>
> If you are thinking of using Subversion to store your Ivy repository, 
> we use IvySvn:
>
> http://code.google.com/p/ivysvn/
>
> (we wrote most of it ;) ) There are some known issues relating to web 
> dav and repository roots with nested folders so give it a go before 
> committing to anything (and please report any issues you experience to 
> the IvySvn project so we can look at them).
> </shameless plug>

First of all: Well done to everyone working on Ivy and Ivy SVN. This is 
a great system!

Alas I have stumbled at the final hurdle!

Adrian could you comment on the following please?:

http://code.google.com/p/ivysvn/issues/detail?id=12

What are you doing at the moment to avoid this issue at Last.fm?

Are you using https:// or svn+ssh to access your Ivy repository?

I am hoping to get time later to look at the IvySVN source and see if I 
can make sense of the problem.  Do you know how close the Ivy SVN team 
is to working on or solving the problem (it appears that the bug 
manifests itself in a variety of guises across across 3 bug reports).

cheers

Garry

>
>
> Garry Smith wrote:
>> Hi,
>>
>> Apologies for the newbie question.
>>
>> I want to set up an enterprise repository that the developers on my 
>> project can submit to using the publish ivy task, from their 
>> development machines.
>>
>> The 'repository machine' has apache 2 and also Subversion (behind 
>> apache 2)
>>
>> The instructions at 
>> http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html 
>> concentrate on creating the repository locally but not about access.
>>
>> Can you point me to further information?
>>
>> The question has popped up a few times in the archive, but I didn't 
>> see a definitive answer.
>>
>> I was thinking to host the ivy repo via SVN. Is this sensible? Any 
>> gotchas?
>>
>> thanks in advance
>>
>> Garry
>>
>>
>>

Re: newbie: Instructions on hosting enterprise repository

Posted by Adrian Woodhead <ad...@last.fm>.
Hey Garry,

At Last.fm we have an Ivy repository in Subversion which contains 
hundreds of third party libraries that our projects depend on. It was a 
bit of work setting this up, but this was split among the development 
team who added libraries as they needed them. This initial overhead was 
well worth the productivity gains we see now with most libraries already 
there. What definitely helped was having a well-communicated, logical, 
standard layout of organisation/module/version that is enforced across 
all artifacts added to the repository.

We also have many projects which publish various artifacts (jar, war, 
tgz etc.) to the same Subversion repository and these then get used by 
other systems (which retrieve the artifacts either using Ivy or "svn 
export" commands). This repository has been in heavy use daily for over 
a year now and has served us extremely well.

<shameless plug>
If you are thinking of using Subversion to store your Ivy repository, we 
use IvySvn:

http://code.google.com/p/ivysvn/

(we wrote most of it ;) ) There are some known issues relating to web 
dav and repository roots with nested folders so give it a go before 
committing to anything (and please report any issues you experience to 
the IvySvn project so we can look at them).
</shameless plug>

Good luck!

Regards,

Adrian


Garry Smith wrote:
> Hi,
>
> Apologies for the newbie question.
>
> I want to set up an enterprise repository that the developers on my 
> project can submit to using the publish ivy task, from their 
> development machines.
>
> The 'repository machine' has apache 2 and also Subversion (behind 
> apache 2)
>
> The instructions at 
> http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html 
> concentrate on creating the repository locally but not about access.
>
> Can you point me to further information?
>
> The question has popped up a few times in the archive, but I didn't 
> see a definitive answer.
>
> I was thinking to host the ivy repo via SVN. Is this sensible? Any 
> gotchas?
>
> thanks in advance
>
> Garry
>
>
>