Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2934

Cannot Deploy Using Webdav due to DependencyManagement

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.0.6
    • 2.0.7
    • Dependencies, Deployment
    • None

    Description

      The webdav wagon requires commons-httpclient-2.0.2.jar. If I have a dependencyManagement section that specifies commons-httpclient 3.0.1, then deployment fails.
      The resulting output is:
      [duncans@J9LAPHP-18811 webdavtest]$ mvn deploy
      [INFO] Scanning for projects...
      [INFO] artifact org.apache.maven.wagon:wagon-webdav: checking for updates from ce-releases
      -----------------------------------------------------
      this realm = app0.child-container[extensions]
      urls[0] = file:/home/duncans/.m2/repository/de/zeigermann/xml/xml-im-exporter/1.1/xml-im-exporter-1.1.jar
      urls[1] = file:/home/duncans/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar
      urls[2] = file:/home/duncans/.m2/repository/org/apache/maven/wagon/wagon-webdav/1.0-beta-2/wagon-webdav-1.0-beta-2.jar
      urls[3] = file:/home/duncans/.m2/repository/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
      urls[4] = file:/home/duncans/.m2/repository/slide/slide-webdavlib/2.1/slide-webdavlib-2.1.jar
      urls[5] = file:/home/duncans/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
      urls[6] = file:/home/duncans/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
      urls[7] = file:/home/duncans/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar
      urls[8] = file:/home/duncans/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
      Number of imports: 0
      this realm = plexus.core
      urls[0] = file:/home/duncans/apps/maven/lib/maven-core-2.0.6-uber.jar
      Number of imports: 0
      -----------------------------------------------------
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Unnamed - test:webdavtest:pom:1.0-SNAPSHOT
      [INFO] task-segment: [deploy]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [site:attach-descriptor]
      [INFO] [install:install]
      [INFO] Installing /home/duncans/tmp/webdavtest/pom.xml to /home/duncans/.m2/repository/test/webdavtest/1.0-SNAPSHOT/webdavtest-1.0-SNAPSHOT.pom
      [INFO] [deploy:deploy]
      altDeploymentRepository = null
      [INFO] Retrieving previous build number from snapshots
      [WARNING] repository metadata for: 'snapshot test:webdavtest:1.0-SNAPSHOT' could not be retrieved from repository: snapshots due to an error: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav
      [INFO] Repository 'snapshots' will be blacklisted
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error deploying artifact: Unsupported Protocol: 'dav': Cannot find wagon which supports the requested protocol: dav
      Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagondav.
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 seconds
      [INFO] Finished at: Thu Apr 05 13:49:52 EDT 2007
      [INFO] Final Memory: 6M/10M
      [INFO] ------------------------------------------------------------------------

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jvanzyl Jason van Zyl
            jrduncans Stephen Charles Duncan, Jr.
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment