ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: enabling webdav support
Date Tue, 09 Mar 2010 22:28:31 GMT
Could you try one of the Apache Commons VFS Ant tasks to check if the problem is related to
Ivy or to VFS.
http://commons.apache.org/vfs/anttasks.html

If the VFS Ant tasks are working, it's probably a bug in Ivy. In that case, could you create
a JIRA issue so we can discuss this problem over there?
https://issues.apache.org/jira/browse/IVY

regards,
Maarten




----- Original Message ----
From: Mandie Smith <mandie@houseofgnomes.net>
To: ivy-user@ant.apache.org
Sent: Mon, March 8, 2010 11:52:25 PM
Subject: Re: enabling webdav support

Here's the verbose output of the publish task, it's long.

Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Detected Java version: 1.6 in: /usr/local/jdk1.6.0_10/jre
Detected OS: Linux

publish:
Overriding previous definition of property "ivy.version"
     [echo]
-------------------------------------------------------------------
Property "publish.local" has not been set
     [echo] PUBLISHING REPOSITORY: SNAPSHOTS
     [echo]
-------------------------------------------------------------------
Overriding previous definition of property "ivy.version"
[ivy:publish] Loading
jar:file:/home/testUser/temp/artifact/target/build/tools/ivy.jar!/org/apache/ivy/core/settings/ivy.properties
Override ignored for property "ivy.log.modules.in.use"
Override ignored for property "ivy.resolver.default.check.modified"
Override ignored for property "ivy.default.always.check.exact.revision"
Override ignored for property "ivy.retrieve.pattern"
Override ignored for property "ivy.configurations"
Override ignored for property "ivy.buildlist.ivyfilepath"
Override ignored for property "ivy.status"
Override ignored for property "ivy.resolve.default.type.filter"
Override ignored for property "ivy.project.dir"
Override ignored for property "ivy.dep.file"
Override ignored for property "ivy.settings.file"
Override ignored for property "ivy.report.output.pattern"
Override ignored for property "ivy.cache.ttl.default"
Override ignored for property "ivy.publish.src.artifacts.pattern"
Override ignored for property "ivy.deliver.ivy.pattern"
Override ignored for property "ivy.build.artifacts.dir"
Override ignored for property "ivy.checksums"
Override ignored for property "ivy.distrib.dir"
Override ignored for property "ivy.lib.dir"
[ivy:publish] :: loading settings :: file =
/home/testUser/temp/artifact/target/build/headers/ivypublisher.xml
[ivy:publish] loading properties:
/home/testUser/temp/artifact/target/build/headers/ivypublisher.properties
[ivy:publish] settings loaded (49ms)
[ivy:publish]   default cache: /home/testUser/.ivy2/cache
[ivy:publish]   default resolver: write-snapshots-module
[ivy:publish]   -- 3 resolvers:
[ivy:publish]   write-local-module [file]
[ivy:publish]   write-snapshots-module [vfs]
[ivy:publish]   write-releases-module [sftp]
Overriding previous definition of property "ivy.version"
[property] Loading /tmp/delivery.properties
[property] Unable to find property file: /tmp/delivery.properties
:: delivering :: organization#artifact;3.1.0.128.20100308174323 ::
3.1.0.128.20100308174323 :: integration :: Mon Mar 08 17:43:25 EST 2010
    delivering ivy file to /home/testUser/temp/artifact/target/lib/ivy.xml
:: publishing :: organization#artifact
Mar 8, 2010 5:43:25 PM org.apache.commons.vfs.VfsLog info
INFO: Using "/tmp/vfs_cache" as temporary files store.

BUILD FAILED
/home/testUser/temp/artifact/target/build/headers/ivybuilder.xml:488: The
following error occurred while executing this line:
/home/testUser/temp/artifact/target/build/headers/ivybuilder.xml:1208:
impossible to publish artifacts for
organization#artifact;3.1.0.128.20100308174323:
java.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308174323/artifact-3.1.0.128.20100308174323.pom
to put data to: resource has no content
    at
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    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:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by:
/home/testUser/temp/artifact/target/build/headers/ivybuilder.xml:1208:
impossible to publish artifacts for
organization#artifact;3.1.0.128.20100308174323:
java.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308174323/artifact-3.1.0.128.20100308174323.pom
to put data to: resource has no content
    at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:318)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 16 more
Caused by: java.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308174323/artifact-3.1.0.128.20100308174323.pom
to put data to: resource has no content
    at
org.apache.ivy.plugins.repository.vfs.VfsRepository.put(VfsRepository.java:209)
    at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
    at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:227)
    at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:209)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:282)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:261)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:170)
    at org.apache.ivy.Ivy.publish(Ivy.java:600)
    at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:299)
    ... 31 more
--- Nested Exception ---
/home/testUser/temp/artifact/target/build/headers/ivybuilder.xml:1208:
impossible to publish artifacts for
organization#artifact;3.1.0.128.20100308174323:
java.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308174323/artifact-3.1.0.128.20100308174323.pom
to put data to: resource has no content
    at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:318)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    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:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    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.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308174323/artifact-3.1.0.128.20100308174323.pom
to put data to: resource has no content
    at
org.apache.ivy.plugins.repository.vfs.VfsRepository.put(VfsRepository.java:209)
    at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
    at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:227)
    at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:209)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:282)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:261)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:170)
    at org.apache.ivy.Ivy.publish(Ivy.java:600)
    at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:299)
    ... 31 more
--- Nested Exception ---
java.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308174323/artifact-3.1.0.128.20100308174323.pom
to put data to: resource has no content
    at
org.apache.ivy.plugins.repository.vfs.VfsRepository.put(VfsRepository.java:209)
    at
org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
    at
org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:227)
    at
org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:209)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:282)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:261)
    at
org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:170)
    at org.apache.ivy.Ivy.publish(Ivy.java:600)
    at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:299)
    at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.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:106)
    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:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 4 seconds



      

Mime
View raw message