Created
November 29, 2023 12:48
-
-
Save pcdavid/889419559dec36e2c3dcdf8ece7d2011 to your computer and use it in GitHub Desktop.
tycho-mirror
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"?> | |
<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> | |
<groupId>net.pcdavid</groupId> | |
<artifactId>tycho-mirrors</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<!-- | |
How to use: | |
- Configure by setting source-repo & destination-path properties | |
- Lsit the p2 IUs to mirror | |
- Invoke with `mvn package` | |
Based on https://www.lorenzobettini.it/2022/04/mirror-eclipse-p2-repositories-with-tycho/ | |
--> | |
<properties> | |
<tycho-version>4.0.4</tycho-version> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<source-repo>https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/2023-12</source-repo> | |
<destination-path>${user.home}/tmp/eclipse-mirrors</destination-path> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.eclipse.tycho.extras</groupId> | |
<artifactId>tycho-p2-extras-plugin</artifactId> | |
<version>${tycho-version}</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>mirror</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<source> | |
<repository> | |
<id>source-repo</id> | |
<layout>p2</layout> | |
<url>${source-repo}</url> | |
</repository> | |
</source> | |
<!-- List of IUs to mirror. If omitted, allIUs will be mirrored. --> | |
<!-- Omitted IU version element means latest version of the IU --> | |
<ius> | |
<iu> | |
<id>org.eclipse.orbit.maven.org.apache.batik.feature.group</id> | |
</iu> | |
<iu> | |
<id>org.eclipse.orbit.maven.org.apache.batik.source.feature.group</id> | |
</iu> | |
</ius> | |
<destination>${destination.path}</destination> | |
<includePacked>false</includePacked> | |
<includeOptional>false</includeOptional> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment