From 2c493dba954df73396adb38318e0b5ac37d50869 Mon Sep 17 00:00:00 2001 From: Wendy Smoak Date: Mon, 12 Mar 2007 00:47:38 +0000 Subject: [PATCH] Add a section on deploying third-party artifacts to Archiva using webdav. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@517058 13f79535-47bb-0310-9956-ffa450edef68 --- .../getting-started/maven-configuration.apt | 49 +++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/archiva-site/src/site/apt/guides/getting-started/maven-configuration.apt b/archiva-site/src/site/apt/guides/getting-started/maven-configuration.apt index c7862c592..e4b868b73 100644 --- a/archiva-site/src/site/apt/guides/getting-started/maven-configuration.apt +++ b/archiva-site/src/site/apt/guides/getting-started/maven-configuration.apt @@ -132,7 +132,9 @@ Configuring Maven-2 to use an Archiva repository +-------------------------------------------------------------------------+ - [[4]] Configure the distributionManagement part of your pom.xml +* Deploying to Archiva + + [[1]] Configure the distributionManagement part of your pom.xml +-------------------------------------------------------------------------+ @@ -153,7 +155,7 @@ Configuring Maven-2 to use an Archiva repository +-------------------------------------------------------------------------+ - [[5]] Add a build extension to your pom.xml to use webdav + [[2]] Add a build extension to your pom.xml to use webdav +-------------------------------------------------------------------------+ @@ -171,4 +173,45 @@ Configuring Maven-2 to use an Archiva repository +-------------------------------------------------------------------------+ - [[6]] Finally the user that is running archiva (tomcat-user, plexus-user,..) must have write access to the deployment repository. + [[3]] Finally the user that is running archiva (tomcat-user, plexus-user,..) must have write access to the deployment repository. + +* Deploying Third-Party Artifacts to Archiva + + [[1]] In the directory from which you intend to execute "<<>>", save the following content as <<>>. + ++-------+ + + 4.0.0 + com.example + webdav-deploy + pom + 1 + Webdav Deployment POM + + + + + org.apache.maven.wagon + wagon-webdav + 1.0-beta-2 + + + + + ++-------+ + + This pom will not be deployed with the artifact, it simply serves to make the + wagon-webdav jar available to the build process. + + Alternately, save this file somewhere else, and use "<<>>" to force the use of an alternate POM file. + + [[2]] Deploy the artifact: + ++------+ +mvn deploy:deploy-file -Dfile=filename.jar -DpomFile=filename.pom + -DrepositoryId=deployment.webdav + -Durl=dav:URL-TO-ARCHIVA/repository/REPOSITORY-ID ++------+ -- 2.39.5