Deploying 3rd party artifacts into a subversion repository


references

svn-deploy.pom

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>svn-deploy</artifactId>
  <packaging>pom</packaging>
  <version>1</version>
  <name>Subversion Deployment POM</name>
  <build>
    <extensions>
      <extension>
        <groupId>org.jvnet.wagon-svn</groupId>
        <artifactId>wagon-svn</artifactId>
        <version>1.12</version>
      </extension>
    </extensions>
  </build>
</project>

deploy:deploy-file

$ mvn deploy:deploy-file \
-f svn-deploy.pom \
-DrepositoryId=target-repository-id \
-Durl=svn:http://target.repository.url \
-Dfile=3rd.party.jar \
-DgroupId=target.group.id \
-DartifactId=target-artifact-id \
-Dpackaging=jar \
-Dversion=target.version

settings.xml

<settings ...>
  <servers>
    <server>
      <id>target-repository-id</id> <!-- -DrepositoryId=target-repository-id -->
      <username>username</username>
      <password>password</password>
    </server>
  </servers>
</settings>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s