diff options
author | Matthias Sohn | 2015-10-05 23:03:46 +0000 |
---|---|---|
committer | Matthias Sohn | 2015-10-06 09:13:34 +0000 |
commit | 6345631d9e8499a037ed400fafd03e88279e399f (patch) | |
tree | eb6dd2c1b5aa05f20e539977c21304e14afd766f | |
parent | db148ffecae77568b9377052f6002ced4ee90478 (diff) | |
download | egit-6345631d9e8499a037ed400fafd03e88279e399f.tar.gz egit-6345631d9e8499a037ed400fafd03e88279e399f.tar.xz egit-6345631d9e8499a037ed400fafd03e88279e399f.zip |
Add p2MirrorsURL and p2StatsURI to EGit p2 repository
Set the environment variable PUBLISH_FOLDER to configure the mirror URL
on the Eclipse download server which is:
http://www.eclipse.org/downloads/download.php?file=${PUBLISH_FOLDER}&format=xml
See
http://wiki.eclipse.org/Equinox/p2/p2.mirrorsURL
http://wiki.eclipse.org/Equinox_p2_download_stats
http://git.eclipse.org/c/recommenders/org.eclipse.recommenders.git/tree/repositories/pom.xml
Bug: 391063
Change-Id: I0b1437dd03127bbe9384d54b189e3eeb328080dc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.egit.repository/pom.xml | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/org.eclipse.egit.repository/pom.xml b/org.eclipse.egit.repository/pom.xml index 937f9e6307..bce0d404e6 100644 --- a/org.eclipse.egit.repository/pom.xml +++ b/org.eclipse.egit.repository/pom.xml @@ -25,6 +25,12 @@ <packaging>eclipse-repository</packaging> <name>EGit P2 Repository</name> + <properties> + <p2MirrorsURL>http://www.eclipse.org/downloads/download.php?file=${PUBLISH_FOLDER}&format=xml</p2MirrorsURL> + <p2StatsURL>http://download.eclipse.org/stats/egit/${project.artifactId}</p2StatsURL> + <!-- At the moment, this list of features needs to be maintained manually. --> + <statsTrackedArtifacts>org.eclipse.jgit.feature,org.eclipse.jgit.source.feature,org.eclipse.jgit.pgm.feature,org.eclipse.jgit.pgm.source.feature,org.eclipse.jgit.http.apache.feature,org.eclipse.egit.feature,org.eclipse.egit.gitflow.feature,org.eclipse.egit.mylyn.feature,org.eclipse.egit.source.feature</statsTrackedArtifacts> + </properties> <profiles> <profile> @@ -92,7 +98,6 @@ <update.site.version>${project.version}</update.site.version> <target.eclipse.version>3.8.2 / 4.2.2 (Juno) or newer</target.eclipse.version> </symbols> - <p2StatsUrl>http://download.eclipse.org/stats/egit/${project.artifactId}/${project.version}</p2StatsUrl> <associateSites> <site>http://download.eclipse.org/e4/snapshots/org.eclipse.e4.ui</site> </associateSites> @@ -100,6 +105,43 @@ </execution> </executions> </plugin> + + <plugin> + <groupId>org.eclipse.tycho.extras</groupId> + <artifactId>tycho-eclipserun-plugin</artifactId> + <version>${tycho-version}</version> + <executions> + <execution> + <id>add-repo-properties</id> + <goals> + <goal>eclipse-run</goal> + </goals> + <phase>package</phase> + <configuration> + <appArgLine>-application org.eclipse.wtp.releng.tools.addRepoProperties</appArgLine> + <!-- See <http://wiki.eclipse.org/Equinox/p2/p2.mirrorsURL>. --> + <!-- See <http://wiki.eclipse.org/Equinox_p2_download_stats>. --> + <argLine>-DartifactRepoDirectory=${project.build.directory}/repository -Dp2MirrorsURL=${p2MirrorsURL} -Dp2StatsURI=${p2StatsURL} -DstatsTrackedArtifacts=${statsTrackedArtifacts} -DstatsArtifactsSuffix=-${project.version}</argLine> + <dependencies> + <dependency> + <artifactId>org.eclipse.wtp.releng.tools.feature</artifactId> + <type>eclipse-feature</type> + </dependency> + </dependencies> + <repositories> + <repository> + <url>http://download.eclipse.org/webtools/releng/repository</url> + <layout>p2</layout> + </repository> + <repository> + <url>http://download.eclipse.org/releases/mars</url> + <layout>p2</layout> + </repository> + </repositories> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |