Author: brett
Date: Thu Nov 22 20:15:01 2007
New Revision: 597541

URL: http://svn.apache.org/viewvc?rev=597541&view=rev
Log:
add deployment docs

Modified:
    maven/archiva/trunk/archiva-docs/src/site/apt/guides/maven-configuration.apt
    maven/archiva/trunk/archiva-docs/src/site/apt/userguide/deploy.apt

Modified: 
maven/archiva/trunk/archiva-docs/src/site/apt/guides/maven-configuration.apt
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-docs/src/site/apt/guides/maven-configuration.apt?rev=597541&r1=597540&r2=597541&view=diff
==============================================================================
--- 
maven/archiva/trunk/archiva-docs/src/site/apt/guides/maven-configuration.apt 
(original)
+++ 
maven/archiva/trunk/archiva-docs/src/site/apt/guides/maven-configuration.apt 
Thu Nov 22 20:15:01 2007
@@ -92,113 +92,6 @@
   </repository>
 +-------------------------------------------------------------------------+
 
-* Configuring Maven-2 to deploy to an Archiva repository
-  
-  [[1]] Create a user in Archiva to use for deployment
-
-  [[2]] The deployment user needs the Role 'Repository Manager' for each 
repository that you want to deploy to
-
-  [[3]] Define the server for deployment inside your 'settings.xml', use the 
newly created user for authentication
-
-+-------------------------------------------------------------------------+
-  <settings>
-    ...
-    <servers>
-      <server>
-        <id>deployment.webdav</id>
-        <username>{archiva-deployment-user}</username>
-        <password>{archiva-deployment-pwd}</password>
-      </server>
-      ...
-    </servers>
-    ...
-  </settings>
-+-------------------------------------------------------------------------+
-
-* Deploying to Archiva
-
-  [[1]] Configure the distributionManagement part of your pom.xml
- 
-+-------------------------------------------------------------------------+
-  <project>
-    ...
-    <distributionManagement>
-      <repository>
-        <id>deployment.webdav</id>
-        <name>Internal Release Repository</name>
-        <url>dav:URL-TO-ARCHIVA/repository/REPOSITORY-ID/</url>
-      </repository>
-      <snapshotRepository>
-        <id>deployment.webdav</id>
-        <name>Internal Snapshot Repository</name>
-        <url>dav:URL-TO-ARCHIVA/repository/REPOSITORY-ID/</url>
-      </snapshotRepository>
-    </distributionManagement>
-    ...
-  </project>
-+-------------------------------------------------------------------------+
-
-  [[2]] Add a build extension to your pom.xml to use webdav
-
-+-------------------------------------------------------------------------+
-  <project>
-    ...
-    <build>
-      <extensions>
-        <extension>
-          <groupId>org.apache.maven.wagon</groupId>
-          <artifactId>wagon-webdav</artifactId>
-          <version>1.0-beta-2</version>
-        </extension>
-      </extensions>
-    </build>
-    ...
-  </project>
-+-------------------------------------------------------------------------+
-
-  [[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 "<<<mvn
-  deploy:deploy-file>>>", save the following content as <<<pom.xml>>>.
-  
-+-------+
-<project>
-   <modelVersion>4.0.0</modelVersion>
-   <groupId>com.example</groupId>
-   <artifactId>webdav-deploy</artifactId>
-   <packaging>pom</packaging>
-   <version>1</version>
-   <name>Webdav Deployment POM</name>
-   
-   <build>
-      <extensions>
-         <extension>
-            <groupId>org.apache.maven.wagon</groupId>
-            <artifactId>wagon-webdav</artifactId>
-            <version>1.0-beta-2</version>
-         </extension>
-      </extensions>
-   </build>
-
-</project>
-+-------+
-
-  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 "<<<mvn ... -f
-  /path/to/filename>>>" 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
-+------+
-
 Archiva as a Proxy
 
 * Creating a New Proxy Repository
@@ -264,4 +157,4 @@
   
   Execute a Maven 2 build. Artifacts should be downloaded from the proxy 
repository/repositories you've set in your settings.xml
   
-  
\ No newline at end of file
+  

Modified: maven/archiva/trunk/archiva-docs/src/site/apt/userguide/deploy.apt
URL: 
http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-docs/src/site/apt/userguide/deploy.apt?rev=597541&r1=597540&r2=597541&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-docs/src/site/apt/userguide/deploy.apt 
(original)
+++ maven/archiva/trunk/archiva-docs/src/site/apt/userguide/deploy.apt Thu Nov 
22 20:15:01 2007
@@ -4,5 +4,119 @@
 
 Deploying to Repository
 
-  :STUB: This is a documentation stub.
+* Configuring Maven to deploy to an Archiva repository
+  
+  [[1]] Create a user in Archiva to use for deployment
 
+  [[2]] The deployment user needs the Role 'Repository Manager' for each 
repository that you want to deploy to
+
+  [[3]] Define the server for deployment inside your 'settings.xml', use the 
newly created user for authentication
+
++-------------------------------------------------------------------------+
+  <settings>
+    ...
+    <servers>
+      <server>
+        <id>deployment.webdav</id>
+        <username>{archiva-deployment-user}</username>
+        <password>{archiva-deployment-pwd}</password>
+      </server>
+      ...
+    </servers>
+    ...
+  </settings>
++-------------------------------------------------------------------------+
+
+* Deploying to Archiva using WebDAV
+
+  [[1]] Configure the <<<distributionManagement>>> part of your <<<pom.xml>>> 
(customising the URLs as needed)
+ 
++-------------------------------------------------------------------------+
+  <project>
+    ...
+    <distributionManagement>
+      <repository>
+        <id>archiva.internal</id>
+        <name>Internal Release Repository</name>
+        
<url>dav:http://reposerver.mycompany.com:8080/archiva/repository/internal/</url>
+      </repository>
+      <snapshotRepository>
+        <id>archiva.snapshots</id>
+        <name>Internal Snapshot Repository</name>
+        
<url>dav:http://reposerver.mycompany.com:8080/archiva/repository/snapshots/</url>
+      </snapshotRepository>
+    </distributionManagement>
+    ...
+  </project>
++-------------------------------------------------------------------------+
+
+  [[2]] Add a build extension to your <<<pom.xml>>>
+
++-------------------------------------------------------------------------+
+  <project>
+    ...
+    <build>
+      <extensions>
+        <extension>
+          <groupId>org.apache.maven.wagon</groupId>
+          <artifactId>wagon-webdav</artifactId>
+          <version>1.0-beta-2</version>
+        </extension>
+      </extensions>
+    </build>
+    ...
+  </project>
++-------------------------------------------------------------------------+
+
+  [[3]] Finally the user that is running archiva (tomcat-user, plexus-user,..) 
must have write access to the deployment repository.   
+
+* Deploying using other protocols
+
+  You can also deploy to the Archiva server using traditional means such as 
SCP, FTP, etc. For more information on these deployment
+  techniques, refer to the Maven documentation.
+
+  Note that once the files are deployed into the location of the Archiva 
managed repository, they will not be detected by Archiva until the
+  next scan takes place, so the interval should be configured to a reasonably 
frequent setting.
+  
+* Deploying Third-Party Artifacts to Archiva
+
+  [[1]] In the directory from which you intend to execute "<<<mvn
+  deploy:deploy-file>>>", save the following content as <<<pom.xml>>>.
+  
++-------+
+<project>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>com.example</groupId>
+   <artifactId>webdav-deploy</artifactId>
+   <packaging>pom</packaging>
+   <version>1</version>
+   <name>Webdav Deployment POM</name>
+   
+   <build>
+      <extensions>
+         <extension>
+            <groupId>org.apache.maven.wagon</groupId>
+            <artifactId>wagon-webdav</artifactId>
+            <version>1.0-beta-2</version>
+         </extension>
+      </extensions>
+   </build>
+
+</project>
++-------+
+
+  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 "<<<mvn ... -f
+  /path/to/filename>>>" 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:http://repo.mycompany.com:8080/repository/internal/
++------+
+
+~~TODO: information for Maven 1, ant tasks, ivy, etc.


Reply via email to