ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garry Smith <g.m.sm...@reading.ac.uk>
Subject Re: newbie: Instructions on hosting enterprise repository
Date Fri, 24 Oct 2008 11:29:45 GMT
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




Mime
View raw message