Deploying third-party artifacts to a local repository with WebDAV

less than 1 minute read

This guide outlines how to deploy third party jars to a local repository over WebDAV. Using WebDAV requires (i) setting up the login data of the WebDAV repository and (ii) providing a current Webdav wagon extension to maven.

  1. Configure the Webdav repository in ~/.m2/settings.xml.
    <settings xmlns=""
  2. Create a dummy pom file which provides maven with information on the required Webdav wagon:
       <name>Webdav Deploy</name>
  3. upload the artifact to the repository with mvn:
    mvn deploy:deploy-file -Dfile=<path-to-file> \
            -DgroupId=<group-id> \
            -DartifactId=<artificat-id> \
            -Dversion=<version> \
            -Dpackaging=<packaging> \
            -DrepositoryId=mywebdavserver \

    Example: deploy the latest libsvm version to our local repository.

    mvn deploy:deploy-file\
        -Dfile=libsvm.jar \ \
        -DartifactId=libsvm \
        -Dversion=3.22 \
        -Dpackaging=jar \ 


Categories: , , ,