Created
July 3, 2012 11:24
-
-
Save xseignard/3039165 to your computer and use it in GitHub Desktop.
upload p2 repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Copyright (c) 2010, 2011 SAP AG and others. All rights reserved. This | |
program and the accompanying materials are made available under the terms | |
of the Eclipse Public License v1.0 which accompanies this distribution, and | |
is available at http://www.eclipse.org/legal/epl-v10.html Contributors: SAP | |
AG - initial API and implementation --> | |
<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> | |
<version>1.0.0-SNAPSHOT</version> | |
<artifactId>eclipse-repository</artifactId> | |
<packaging>eclipse-repository</packaging> | |
<name>RCP Example Product</name> | |
<parent> | |
<version>1.0.0-SNAPSHOT</version> | |
<groupId>example.group</groupId> | |
<artifactId>parent</artifactId> | |
</parent> | |
<build> | |
<extensions> | |
<!-- Enabling the use of FTP --> | |
<extension> | |
<groupId>org.apache.maven.wagon</groupId> | |
<artifactId>wagon-ftp</artifactId> | |
<version>1.0-beta-6</version> | |
</extension> | |
</extensions> | |
<plugins> | |
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-p2-director-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<executions> | |
<execution> | |
<id>materialize-products</id> | |
<goals> | |
<goal>materialize-products</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>archive-products</id> | |
<goals> | |
<goal>archive-products</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<!-- This profile is used to upload the repo --> | |
<profile> | |
<id>uploadRepo</id> | |
<properties> | |
<!-- Properties relative to the distant host where to upload the repo --> | |
<ftp.url>ftp://ftpperso.free.fr</ftp.url> | |
<ftp.toDir>/repo</ftp.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-4</version> | |
<executions> | |
<execution> | |
<id>upload-repo</id> | |
<phase>install</phase> | |
<goals> | |
<goal>upload</goal> | |
</goals> | |
<configuration> | |
<fromDir>${repo.path}</fromDir> | |
<includes>**</includes> | |
<url>${ftp.url}</url> | |
<toDir>${ftp.toDir}</toDir> | |
<!-- Points to your settings.xml where the connection settings are | |
stored as shown below --> | |
<!-- <server> --> | |
<!-- <id>p2Repo</id> --> | |
<!-- <username>username</username> --> | |
<!-- <password>password</password> --> | |
<!-- </server> --> | |
<serverId>p2Repo</serverId> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment