Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-244

Deploying to WebDAV repository fails in IAE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • None
    • None
    • Windows XP, Cygwin, Maven 2.1.0-M1

    Description

      Under Maven 2.1.0-M1, deploying to a WebDAV repository fails with:

      java.lang.IllegalArgumentException: Host name may not be null
              at hidden.org.apache.commons.httpclient.HttpHost.<init>(HttpHost.java:68)
              at hidden.org.apache.commons.httpclient.HttpHost.<init>(HttpHost.java:107)
              at hidden.org.apache.commons.httpclient.HttpMethodBase.setURI(HttpMethodBase.java:280)
              at hidden.org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:220)
              at hidden.org.apache.commons.httpclient.methods.ExpectContinueMethod.<init>(ExpectContinueMethod.java:93)
              at hidden.org.apache.commons.httpclient.methods.EntityEnclosingMethod.<init>(EntityEnclosingMethod.java:119)
              at hidden.org.apache.jackrabbit.webdav.client.methods.DavMethodBase.<init>(DavMethodBase.java:58)
              at hidden.org.apache.jackrabbit.webdav.client.methods.MkColMethod.<init>(MkColMethod.java:32)
              at org.apache.maven.wagon.providers.webdav.WebDavWagon.doMkCol(WebDavWagon.java:143)
              at org.apache.maven.wagon.providers.webdav.WebDavWagon.mkdirs(WebDavWagon.java:118)
              at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:273)
              at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:232)
              at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:263)
              at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:172)
              at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
              at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:458)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:676)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:538)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:517)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:369)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:330)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
              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:302)
              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:597)
              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)

      Run mvn deploy with attached pom.xml. Works under Maven 2.0.9 (albeit with a correct repository URL) but fails under Maven 2.1.0-M1.

      Attachments

        1. pom.xml
          0.8 kB
          Mark Hobson
        2. wagon-jackrabbit-webdav.patch
          0.8 kB
          james.w.dumay

        Issue Links

          Activity

            People

              brett Brett Porter
              markh Mark Hobson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: