Created
March 23, 2014 15:58
-
-
Save kingargyle/9725106 to your computer and use it in GitHub Desktop.
Mirror Eclipse ADT Plugins to a real P2 repository.
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"?> | |
<!-- | |
Copy the old update site for ADT plugins into a p2 repository that can be used as part of a tycho build or to handle | |
cases where Eclipse complains about the external site not being available. This will create a new P2 repository instead | |
of the old site.xml based repository which is deprecated. | |
The p2 repository will be in the target/site/p2 directory when finished. You can then use as a local p2 repository in | |
Eclipse or deploy it to a web server and use it company wide. | |
--> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.android.eclipse.adt</groupId> | |
<artifactId>p2-mirror</artifactId> | |
<version>22.6.1-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.eclipse.tycho.extras</groupId> | |
<artifactId>tycho-p2-extras-plugin</artifactId> | |
<version>0.19.0</version> | |
<executions> | |
<execution> | |
<id>copy-to-central-site</id> | |
<phase>install</phase> | |
<goals> | |
<goal>mirror</goal> | |
</goals> | |
<configuration> | |
<source> | |
<repository> | |
<url>https://dl-ssl.google.com/android/eclipse/</url> | |
</repository> | |
</source> | |
<append>true</append> | |
<destination>${project.build.directory}/site/p2</destination> | |
</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