jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Wagon
  • WAGON-108

HttpException deploying to webdav

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-beta-2
  • Fix Version/s: 1.0-beta-3
  • Component/s: wagon-webdav
  • Labels:
    None
  • Environment:
    Maven version: 2.0.9
    Java version: 1.5.0_12
    OS name: "linux" version: "2.6.22" arch: "i386" Family: "unix"

Description

When trying to deploy to our webdav maven-repository the following exception occurs:

[...]
[INFO] [install:install]
[INFO] Installing /home/sw/my-project/target/my-project.jar to /opt/maven/repository/my-project/1.0-SNAPSHOT/my-project-1.0-SNAPSHOT.jar
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from maven-host
Uploading: http://maven-host/maven/my-project/1.0-SNAPSHOT/my-project-1.0-20080416.104050-26.jar
org.apache.commons.httpclient.HttpException: Unbuffered entity enclosing request can not be repeated.
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:436)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2316)
at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2651)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
at org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource.putMethod(CorrectedWebdavResource.java:156)
at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:287)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:244)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:160)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: PUT request for: my-project/1.0-SNAPSHOT/my-project-1.0-20080416.104050-26.jar to my-project.jar failed

Unbuffered entity enclosing request can not be repeated.
[...]

The access.log of our maven-repository show the following:

[...]
maven-host - [16/Apr/2008:12:44:00 +0200] "MKCOL /maven/my-project/1.0-SNAPSHOT/ HTTP/1.1" 401 401 "" "Jakarta Commons-HttpClient/2.0.2" "" "" "" "" "" "-" "112"
maven-host devbuild [16/Apr/2008:12:44:00 +0200] "MKCOL /maven/my-project/1.0-SNAPSHOT/ HTTP/1.1" 405 236 "" "Jakarta Commons-HttpClient/2.0.2" "" "" "" "" "" "-" "123"
maven-host - [16/Apr/2008:12:44:00 +0200] "PUT /maven/my-project/1.0-SNAPSHOT/my-project-1.0-20080416.104050-26.jar HTTP/1.1" 401 401 "" "Jakarta Commons-HttpClient/2.0.2" "" "" "" "" "" "-" "15853"
maven-host devbuild [16/Apr/2008:12:44:00 +0200] "PUT /maven/my-project/1.0-SNAPSHOT/my-project-1.0-20080416.104050-26.jar HTTP/1.1" 201 262 "" "Jakarta Commons-HttpClient/2.0.2" "" "" "" "" "" "-" "9090"
[...]

This shows that every request without auth-info ist retried with auth-info automatically, but the payload of the PUT request is missing the JAR-content.
In some forum I found the hint that the buffering of the content within http-client can be forced via setting the ContentLength to AUTO.

So I changed the following:
{{
// method.setRequestContentLength( contentLength );
method.setRequestContentLength( PutMethod.CONTENT_LENGTH_AUTO );
}}

This resolves the problem, but I don't know if there are some unwanted side-effects.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 20/May/08 4:09 AM

I believe the upgrade to httpclient 3.1 has taken care of that

Show
Brett Porter added a comment - 20/May/08 4:09 AM I believe the upgrade to httpclient 3.1 has taken care of that
Hide
Permalink
Guillaume Laforge added a comment - 02/Oct/10 4:04 AM

Hello, I think I'm affected by this bug, I can't deploy a little project on Codehaus.
The ticket mentions it's fixed in 1.0-beta-3, but it seems 1.0-beta-3 hasn't been released yet?
Could it be possible to make a release of that plugin, so that I can do my release?
Thanks in advance.

Show
Guillaume Laforge added a comment - 02/Oct/10 4:04 AM Hello, I think I'm affected by this bug, I can't deploy a little project on Codehaus. The ticket mentions it's fixed in 1.0-beta-3, but it seems 1.0-beta-3 hasn't been released yet? Could it be possible to make a release of that plugin, so that I can do my release? Thanks in advance.
Hide
Permalink
Brett Porter added a comment - 02/Oct/10 4:21 AM

From 1.0-beta-3, the library switched to the artifact ID wagon-webdav-jackrabbit (as it uses a different implementation)

Show
Brett Porter added a comment - 02/Oct/10 4:21 AM From 1.0-beta-3, the library switched to the artifact ID wagon-webdav-jackrabbit (as it uses a different implementation)
Hide
Permalink
Guillaume Laforge added a comment - 02/Oct/10 7:28 AM

I tried with wagon-webdave-jackrabbit, but it didn't improve the situation.
Here's the trace I got:

[INFO] [deploy:deploy]
Uploading: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar
2 oct. 2010 14:30:10 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:10 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:10 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:10 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:11 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:11 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:11 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:12 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:12 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:12 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:12 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:12 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
	... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121)
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
	... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:368)
	at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:280)
	at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:262)
	at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:172)
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
	... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Sat Oct 02 14:30:12 CEST 2010
[INFO] Final Memory: 16M/30M
[INFO] ------------------------------------------------------------------------
Show
Guillaume Laforge added a comment - 02/Oct/10 7:28 AM I tried with wagon-webdave-jackrabbit, but it didn't improve the situation. Here's the trace I got:
[INFO] [deploy:deploy]
Uploading: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar
2 oct. 2010 14:30:10 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:10 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:10 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:10 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:11 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:11 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:11 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:11 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:12 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:12 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:12 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
2 oct. 2010 14:30:12 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
2 oct. 2010 14:30:12 org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
INFO: Failure authenticating with BASIC 'guessencoding Repository'@dav.codehaus.org:443
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
	... 16 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121)
	at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
	... 18 more
Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: https://dav.codehaus.org/repository/guessencoding/org/codehaus/guessencoding/guessencoding/1.4/guessencoding-1.4.jar. Return code is: 401
	at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:368)
	at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:280)
	at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:262)
	at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:172)
	at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
	... 19 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Sat Oct 02 14:30:12 CEST 2010
[INFO] Final Memory: 16M/30M
[INFO] ------------------------------------------------------------------------
Hide
Permalink
Jason van Zyl added a comment - 02/Oct/10 7:35 AM

I suggest taking a few minutes and migrate your project over to the Nexus infrastructure setup at Codehaus, then you don't need to use the WebDAV providers to deploy. We don't have any issues with deployment to Nexus at Apache or Codehaus on the Nexus instances. Doing this is likely fast then trying to track down the problem in the WebDAV provider which honestly doesn't get much love.

Show
Jason van Zyl added a comment - 02/Oct/10 7:35 AM I suggest taking a few minutes and migrate your project over to the Nexus infrastructure setup at Codehaus, then you don't need to use the WebDAV providers to deploy. We don't have any issues with deployment to Nexus at Apache or Codehaus on the Nexus instances. Doing this is likely fast then trying to track down the problem in the WebDAV provider which honestly doesn't get much love.
Hide
Permalink
Guillaume Laforge added a comment - 02/Oct/10 10:34 AM

Interestingly, I'm able to deploy Groovy (using Maven's Ant tasks) from my machine (so I don't expect it to be a setup issue on my end), but the wagon/webdav upload fails
I'll have a look at Nexus, although I don't understand why something worked before (I used to do my releases successfully before) and why it doesn't work anymore now.
Even if the WebDAV provider doesn't get much love, it's not a reason for not trying to make it work

Show
Guillaume Laforge added a comment - 02/Oct/10 10:34 AM Interestingly, I'm able to deploy Groovy (using Maven's Ant tasks) from my machine (so I don't expect it to be a setup issue on my end), but the wagon/webdav upload fails I'll have a look at Nexus, although I don't understand why something worked before (I used to do my releases successfully before) and why it doesn't work anymore now. Even if the WebDAV provider doesn't get much love, it's not a reason for not trying to make it work
Hide
Permalink
Olivier Lamy added a comment - 02/Oct/10 12:03 PM

Hi Guillaume,
Can you deploy SNAPSHOT using wagon-webdav-jackrabbit 1.0-beta-7-SNAPSHOT ?
Does it fix your issue ?
If yes we can certainly schedule a release.

Show
Olivier Lamy added a comment - 02/Oct/10 12:03 PM Hi Guillaume, Can you deploy SNAPSHOT using wagon-webdav-jackrabbit 1.0-beta-7-SNAPSHOT ? Does it fix your issue ? If yes we can certainly schedule a release.
Hide
Permalink
Guillaume Laforge added a comment - 02/Oct/10 1:03 PM

Hi Olivier, I tried changing the version to use the snapshot, but it couldn't find it. How can I setup my pom so that it finds that snapshot?

Show
Guillaume Laforge added a comment - 02/Oct/10 1:03 PM Hi Olivier, I tried changing the version to use the snapshot, but it couldn't find it. How can I setup my pom so that it finds that snapshot?
Hide
Permalink
Olivier Lamy added a comment - 02/Oct/10 2:53 PM

Use

<repositories>
    <repository>
      <id>apache.snapshots</id>
      <url>https://repository.apache.org/content/groups/snapshots-group/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
Show
Olivier Lamy added a comment - 02/Oct/10 2:53 PM Use
<repositories>
    <repository>
      <id>apache.snapshots</id>
      <url>https://repository.apache.org/content/groups/snapshots-group/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>
Hide
Permalink
Guillaume Laforge added a comment - 03/Oct/10 1:28 AM

After ranting... I realize my settings.xml had some issues which I've now fixed, and the release ended up working with 1.0-beta-6 as well. So there's no hurry in releasing the next version.
Thanks all (Ben, Brett, Jason, Arnaud and Olivier) for your help for troubleshooting all this!

Show
Guillaume Laforge added a comment - 03/Oct/10 1:28 AM After ranting... I realize my settings.xml had some issues which I've now fixed, and the release ended up working with 1.0-beta-6 as well. So there's no hurry in releasing the next version. Thanks all (Ben, Brett, Jason, Arnaud and Olivier) for your help for troubleshooting all this!

People

  • Assignee:
    Brett Porter
    Reporter:
    Steffen Werner
Vote (1)
Watch (1)

Dates

  • Created:
    16/Apr/08 6:21 AM
    Updated:
    03/Oct/10 1:28 AM
    Resolved:
    20/May/08 4:09 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.