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/branches/archiva-1.0.x@661610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d5f82112f6
commit
1ecf358242
|
@ -13,23 +13,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 WebDAV
|
||||
|
@ -39,40 +39,40 @@ Deploying to Repository
|
|||
element in <<<settings.xml>>>.
|
||||
|
||||
+-------------------------------------------------------------------------+
|
||||
<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>>>
|
||||
|
||||
+-------------------------------------------------------------------------+
|
||||
<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>
|
||||
+-------------------------------------------------------------------------+
|
||||
|
||||
[[3]] Finally the user that is running archiva (tomcat-user, plexus-user,..) must have write access to the deployment repository.
|
||||
|
@ -92,22 +92,22 @@ Deploying to Repository
|
|||
|
||||
+-------+
|
||||
<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>
|
||||
<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>
|
||||
+-------+
|
||||
|
|
Loading…
Reference in New Issue