mirror of https://github.com/apache/archiva.git
o Unindent configuration snippets to make them copy-paste friendly.
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@661613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce1253dc03
commit
d8db8b9a57
|
@ -19,23 +19,23 @@ Deploying to Repository
|
|||
[[3]] Define the server for deployment inside your 'settings.xml', use the newly created user for authentication
|
||||
|
||||
+-------------------------------------------------------------------------+
|
||||
<settings>
|
||||
<settings>
|
||||
...
|
||||
<servers>
|
||||
<server>
|
||||
<id>archiva.internal</id>
|
||||
<username>{archiva-deployment-user}</username>
|
||||
<password>{archiva-deployment-pwd}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>archiva.snapshots</id>
|
||||
<username>{archiva-deployment-user}</username>
|
||||
<password>{archiva-deployment-pwd}</password>
|
||||
</server>
|
||||
...
|
||||
<servers>
|
||||
<server>
|
||||
<id>archiva.internal</id>
|
||||
<username>{archiva-deployment-user}</username>
|
||||
<password>{archiva-deployment-pwd}</password>
|
||||
</server>
|
||||
<server>
|
||||
<id>archiva.snapshots</id>
|
||||
<username>{archiva-deployment-user}</username>
|
||||
<password>{archiva-deployment-pwd}</password>
|
||||
</server>
|
||||
...
|
||||
</servers>
|
||||
...
|
||||
</settings>
|
||||
</servers>
|
||||
...
|
||||
</settings>
|
||||
+-------------------------------------------------------------------------+
|
||||
|
||||
** Deploying to Archiva using HTTP
|
||||
|
@ -45,22 +45,22 @@ Deploying to Repository
|
|||
element in <<<settings.xml>>>.
|
||||
|
||||
+-------------------------------------------------------------------------+
|
||||
<project>
|
||||
...
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>archiva.internal</id>
|
||||
<name>Internal Release Repository</name>
|
||||
<url>http://reposerver.mycompany.com:8080/archiva/repository/internal/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>archiva.snapshots</id>
|
||||
<name>Internal Snapshot Repository</name>
|
||||
<url>http://reposerver.mycompany.com:8080/archiva/repository/snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
...
|
||||
</project>
|
||||
<project>
|
||||
...
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>archiva.internal</id>
|
||||
<name>Internal Release Repository</name>
|
||||
<url>http://reposerver.mycompany.com:8080/archiva/repository/internal/</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>archiva.snapshots</id>
|
||||
<name>Internal Snapshot Repository</name>
|
||||
<url>http://reposerver.mycompany.com:8080/archiva/repository/snapshots/</url>
|
||||
</snapshotRepository>
|
||||
</distributionManagement>
|
||||
...
|
||||
</project>
|
||||
+-------------------------------------------------------------------------+
|
||||
|
||||
** Deploying to Archiva using WebDAV
|
||||
|
@ -71,40 +71,40 @@ Deploying to Repository
|
|||
[[1]] Add <<<dav:>>> to the front of the deployment URLs:
|
||||
|
||||
+-------------------------------------------------------------------------+
|
||||
<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>
|
||||
<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>>> (not required in Maven 2.0.9 and above)
|
||||
|
||||
+-------------------------------------------------------------------------+
|
||||
<project>
|
||||
...
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-webdav</artifactId>
|
||||
<version>1.0-beta-2</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
</build>
|
||||
...
|
||||
</project>
|
||||
<project>
|
||||
...
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-webdav</artifactId>
|
||||
<version>1.0-beta-2</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
</build>
|
||||
...
|
||||
</project>
|
||||
+-------------------------------------------------------------------------+
|
||||
|
||||
** Deploying using other protocols
|
||||
|
@ -143,7 +143,7 @@ mvn deploy:deploy-file -Dfile=filename.jar -DpomFile=filename.pom
|
|||
<packaging>pom</packaging>
|
||||
<version>1</version>
|
||||
<name>Webdav Deployment POM</name>
|
||||
|
||||
|
||||
<build>
|
||||
<extensions>
|
||||
<extension>
|
||||
|
|
Loading…
Reference in New Issue