Skip to content

Instantly share code, notes, and snippets.

@lschuetze
Last active August 29, 2015 14:22
Show Gist options
  • Save lschuetze/332f2663505a0ad8b8c6 to your computer and use it in GitHub Desktop.
Save lschuetze/332f2663505a0ad8b8c6 to your computer and use it in GitHub Desktop.
Tycho upload update site
<properties>
<!-- Properties relative to the
distant host where to upload the repo -->
<scp.url>scp://${env.UPLOAD_USER}:${env.UPLOAD_PASS}@host.com</scp.url>
<scp.toDir>www/dir/on/the/server</scp.toDir>
<!-- Relative path to the repo being uploaded -->
<repo.path>${project.build.directory}/repository/</repo.path>
</properties>
<build>
<plugins>
<!-- Upload the repo to the server -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-5</version>
<executions>
<execution>
<id>upload-repo</id>
<phase>install</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>${repo.path}</fromDir>
<includes>**</includes>
<toDir>${scp.toDir}</toDir>
<url>${scp.url}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>de.larsschuetze.eclipse.tutorial.updatesite</artifactId>
<packaging>eclipse-update-site</packaging>
<parent>
<groupId>de.larsschuetze</groupId>
<artifactId>de.larsschuetze.eclipse.tutorial.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../de.larsschuetze.eclipse.tutorial.parent/pom.xml</relativePath>
</parent>
<properties>
<!-- Properties relative to the
distant host where to upload the repo -->
<scp.url>scp://${env.UPLOAD_USER}:${env.UPLOAD_PASS}@host.com</scp.url>
<scp.toDir>www/dir/on/the/server</scp.toDir>
<!-- Relative path to the repo being uploaded -->
<repo.path>${project.build.directory}/repository/</repo.path>
</properties>
<build>
<plugins>
<!-- Upload the repo to the server -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-5</version>
<executions>
<execution>
<id>upload-repo</id>
<phase>install</phase>
<goals>
<goal>upload</goal>
</goals>
<configuration>
<fromDir>${repo.path}</fromDir>
<includes>**</includes>
<toDir>${scp.toDir}</toDir>
<url>${scp.url}</url>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment