<< August 26, 2008 | Home | August 28, 2008 >>

mvn deploy:deploy-file with WebDAV

Deploying third party artifacts to an internal Maven repo

Though most of the Java libraries are already in the official Maven repository you will from time to time encounter artifacts that are not available there. Reasons for this include licensing issues (e.g. Oracle JDBC drivers and some Sun Java APIs) and a lack of maintainers.
Most users of Maven run an internal repository for those artifacts and to distribute their own work products.

Recent versions of Maven support uploading artificats along with their sources directly into your internal repo through WebDAV:

mvn deploy:deploy-file \
        -DrepositoryId="internal" \
        -Durl="dav:https://server/repo" \
        -Dfile="oracle-jdbc.jar" \
        -DgroupId="com.oracle" \
        -DartifactId="oracle-jdbc" \
        -Dversion="1.2.3" \
        -Dpackaging=jar \
        -DgeneratePom=true

Read more...

Tags :