I had previously written about mirroring Eclipse p2 repositories (see this blog tag), but I’ll show how to do that with Tycho andone of its pluginsin this post.
The goal is always the same: speed up my Maven/Tycho builds that depend on target platforms and insulate me from external servers.
The source code of this example can be found here:https://github.com/LorenzoBettini/tycho-mirror-example.
I will show how to create a mirror of a few features and bundles from a few p2 repositories so that I can then resolve a target definition file against the mirror. In the POM, I will also create a version of the target definition file modified to use the local mirror (using Ant). Moreover, I will also use a Tycho goal to validate such a modified target definition file against the local mirror. The overall procedure is also automatized in the CI (GitHub Actions). This way, we are confident that we will create a mirror that can be used locally for our builds.
First of all, let’s see the target platform I want to use during my Maven/Tycho builds. The target platform definition file is taken from my projectEdelta, based on Xtext.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <?xmlversion="1.0"encoding="UTF-8"standalone="no"?> <?pdeversion="3.8"?> <targetname="edelta.target"sequenceNumber="13"> <locations> <locationincludeAllPlatforms="false"includeConfigurePhase="false"includeMode="planner"includeSource="true"type="InstallableUnit"> <unitid="org.eclipse.equinox.executable.feature.group"version="0.0.0"/> <unitid="org.eclipse.jdt.feature.group"version="0.0.0"/> <unitid="org.eclipse.platform.feature.group"version="0.0.0"/> <unitid="org.eclipse.pde.feature.group"version="0.0.0"/> <unitid="org.eclipse.sdk"version="0.0.0"/> <unitid="org.eclipse.emf.sdk.feature.group"version="0.0.0"/> <unitid="org.eclipse.swtbot.forms.feature.group"version="0.0.0"/> <unitid="org.eclipse.swtbot.ide.feature.group"version="0.0.0"/> <unitid="org.eclipse.swtbot.eclipse.feature.group"version="0.0.0"/> <repositorylocation="https://download.eclipse.org/releases/2022-03"/> </location> <locationincludeAllPlatforms="false"includeConfigurePhase="false"includeMode="planner"includeSource="true"type="InstallableUnit"> <unitid="org.eclipse.emf.mwe2.launcher.feature.group"version="0.0.0"/> <repositorylocation="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.12.2/"/> </location> <locationincludeAllPlatforms="false"includeConfigurePhase="false"includeMode="planner"includeSource="true"type="InstallableUnit"> <unitid="org.eclipse.xtext.sdk.feature.group"version="0.0.0"/> <repositorylocation="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.26.0/"/> </location> <locationincludeAllPlatforms="false"includeConfigurePhase="true"includeMode="planner"includeSource="true"type="InstallableUnit"> <unitid="de.itemis.xtext.antlr.feature.feature.group"version="2.1.1.v201405091103"/> <repositorylocation="https://download.itemis.com/updates/releases/2.1.1/"/> </location> <locationincludeAllPlatforms="false"includeConfigurePhase="true"includeMode="planner"includeSource="true"type="InstallableUnit"> <unitid="org.eclipse.epsilon.picto.feature.feature.group"version="0.0.0"/> <unitid="org.eclipse.epsilon.emf.feature.feature.group"version="0.0.0"/> <repositorylocation="https://download.eclipse.org/epsilon/updates/2.4/"/> </location> <locationincludeAllPlatforms="false"includeConfigurePhase="true"includeMode="planner"includeSource="true"type="InstallableUnit"> <repositorylocation="https://download.eclipse.org/tools/orbit/downloads/2022-03/"/> </location> </locations> </target> |
As you see, it’s rather complex and relies on several p2 repositories. The last repository is the Orbit repository; although it does not list any installable units, that is still required to resolve dependencies of Epsilon (see the last but one location). We have to consider this when defining our mirroring strategy.
As usual, we define a few properties at the beginning of the POM for specifying the versions of the plugin and the parts of the p2 update site we will mirror from:
1 2 3 4 5 6 | <properties> <tycho-version>2.7.1</tycho-version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <eclipse-version>2022-03</eclipse-version> <xtext-version>2.26.0</xtext-version> </properties> |
Let’s configure the Tycho plugin for mirroring (see thedocumentation of the pluginfor all the details of the configuration):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | <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>${eclipse-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/releases/${eclipse-version}</url> </repository> <repository> <id>${xtext-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/modeling/tmf/xtext/updates/releases/${xtext-version}</url> </repository> <repository> <id>itemis</id> <layout>p2</layout> <url>https://download.itemis.com/updates/releases/2.1.1/</url> </repository> <repository> <id>Epsilon</id> <layout>p2</layout> <url>https://download.eclipse.org/epsilon/updates/2.4/</url> </repository> <repository> <id>Orbit ${eclipse-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/tools/orbit/downloads/${eclipse-version}</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.equinox.executable.feature.group</id> </iu> <iu> <id>org.eclipse.sdk.feature.group</id> </iu> <iu> <id>org.eclipse.swtbot.eclipse.feature.group</id> </iu> <iu> <id>org.eclipse.swtbot.ide.feature.group</id> </iu> <iu> <id>org.eclipse.xtext.sdk.feature.group</id> </iu> <iu> <id>org.eclipse.emf.sdk.feature.group</id> </iu> <iu> <id>de.itemis.xtext.antlr.feature.feature.group</id> </iu> <iu> <id>org.eclipse.epsilon.picto.feature.feature.group</id> </iu> <iu> <id>org.eclipse.epsilon.emf.feature.feature.group</id> </iu> </ius> <!-- The destination directory to mirror to. --> <destination>${user.home}/eclipse-mirrors</destination> <includePacked>false</includePacked> <includeOptional>false</includeOptional> <!-- because some features, like epsilon, require an old version of org.antlr.runtime: org.eclipse.epsilon.common 2.4.0.202203041826 requires 'osgi.bundle; org.antlr.runtime [3.1.1,3.5.3)' --> <latestVersionOnly>false</latestVersionOnly> </configuration> </plugin> |
The mirror will be generated in the user home subdirectory “eclipse-mirrors” (<destination>tag); we also define a few other mirroring options. Note that in this example, we cannot mirror only the latest versions of bundles (<latestVersionOnly>), as detailed in the comment in the POM. We also avoid mirroring the entire contents of the update sites (it would be too much). That’s why we specify single installable units. Remember that also dependencies of the listed installable units will be mirrored, so it is enough to list the main ones. You might note differences between the installable units specified in the target platform definition and those listed in the plugin configuration. Indeed, the target platform file could also be simplified accordingly, but I just wanted to have slight differences to experiment with.
If you write the above configuration in a POM file (a<packaging>pom</packaging>will be enough), you can already build the mirror running:
1 | mvnpackage |
Remember that the mirroring process will take several minutes depending on your Internet connection speed since it will have to download about 500 Mb of data.
You can verify that all the specified repositories are needed to create the mirror correctly. For example, try to remove this part from the POM:
1 2 3 4 5 | <repository> <id>Orbit ${eclipse-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/tools/orbit/downloads/${eclipse-version}</url> </repository> |
Try to create the mirror, and you should see this warning message because some requirements of Epsilon bundles cannot be resolved:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [WARNING]Mirrortool:Problemsresolvingprovisioningplan.: [Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-gfm-strikethrough0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-gfm-tables0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-heading-anchor0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-image-attributes0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-ins0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-task-list-items0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;com.atlassian.commonmark-yaml0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;net.sourceforge.plantuml0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.picto2.3.0.202104221823 toosgi.bundle;org.apache.commons.csv0.0.0.; Unabletosatisfydependencyfromorg.eclipse.epsilon.emg.engine2.3.0.202104221823 toosgi.bundle;org.apache.commons.math30.0.0.] |
Those requirements are found in the Orbit p2 repository, which we have just removed for testing purposes.
Unfortunately, I found no way to make the build fail in such cases, even because it’s just a warning, not an error. I guess this is a limitation of the Eclipse mirroring mechanism. However, we will now see how to verify that the mirror contains all the needed software using another mechanism.
We create a modified version of our target definition file pointing to our local mirror. To do that, we create an Ant file (create_local_target.ant):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | <?xmlversion="1.0"encoding="ISO-8859-1"?> <projectname="CreateLocalTargetDefinitionFile"basedir="."default="create-target-file"> <!-- Replaces all the repository location elements of a .target file with a location pointing to a local file system directory where the mirror has to be already created --> <propertyname="local.target"value="local.target"/> <propertyname="orig.target"location="./example.target"/> <propertyname="local.mirror.path.input"location="${user.home}/eclipse-mirrors"/> <propertyname="local.mirror.url.input"value="file:${local.mirror.path}"/> <macrodefname="replace_win_slashes"> <attributename="property.to.process"/> <attributename="output.property"/> <sequential> <loadresourceproperty="@{output.property}"> <stringvalue="@{property.to.process}"/> <filterchain> <replaceregexpattern="\\" replace="/" flags="gi" /> </filterchain> </loadresource> <echo message="property.to.process:@{property.to.process}" /> <echo message="output.property :${@{output.property}}" /> </sequential> </macrodef> <replace_win_slashes property.to.process="${local.mirror.path.input}" output.property="local.mirror.path" /> <replace_win_slashes property.to.process="${local.mirror.url.input}" output.property="local.mirror.url" /> <target name="copy-target-file" description="Copythe.targetdefinitionfileintothelocal.target"> <echo message="local.target:${local.target}" /> <echo message="orig.target:${orig.target}" /> <copy file="${orig.target}" tofile="${local.target}" overwrite="true" verbose="true" /> </target> <target name="create-target-file" depends="copy-target-file" description="Createsa.targetfilefromtheoriginalone,pointingtoalocalmirror"> <echo message="local.mirror.path:${local.mirror.path}" /> <echo message="local.mirror.url:${local.mirror.url}" /> <replaceregexp> <regexp pattern="targetname="(\S+)"(\.*)" /> <substitution expression="targetname="local"\2" /> <fileset id="path.target" dir="."> <include name="${local.target}" /> </fileset> </replaceregexp> <replaceregexp byline="true"> <regexp pattern="<repositorylocation="(\S+)"(\.*)/>" /> <substitution expression="<repositorylocation="${local.mirror.url}"\2/>" /> <fileset id="path.target" dir="."> <include name="${local.target}"/> </fileset> </replaceregexp> </target> </project> |
Note that this also handles path separators in Windows correctly. The idea is to replace lines of the shape <repository location=”https://…”/> with <repository location=”file:/…/eclipse-mirrors”/>. This file assumes the original target file is example.target,and the modified file is generated intolocal.target.
Let’s call this Ant script from the POM:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <plugin> <artifactId>maven-antrun-plugin</artifactId> <!-- create the local.target --> <executions> <execution> <id>create-target-file</id> <phase>process-resources</phase> <configuration> <target> <antantfile="create_local_target.ant" target="create-target-file"> </ant> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> |
Finally, let’s use Tycho to validate the local.targetfile (see thedocumentation of the goal):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <plugin> <groupId>org.eclipse.tycho.extras</groupId> <artifactId>target-platform-validation-plugin</artifactId> <version>${tycho-version}</version> <executions> <!-- Binds by default to the lifecycle phase: validate. --> <execution> <id>validate-target-platform</id> <goals> <goal>validate-target-platform</goal> </goals> <configuration> <targetFiles> <targetFile>local.target</targetFile> </targetFiles> <checkDependencies>true</checkDependencies> <checkProvisioning>true</checkProvisioning> </configuration> </execution> </executions> </plugin> |
Now, if we run:
1 | mvnpackage |
we build the mirror, and we create thelocal.targetfile.
Then, we can run the above goal explicitly to verify everything:
1 | mvntarget-platform-validation:validate-target-platform@validate-target-platform |
If this goal also succeeds, we managed to create a local mirror that we can use in our local builds. Of course, in the parent POM of your project, you must configure the build so that you can switch tolocal.targetinstead of using your standard .target file. (You might want to look at the parent POM of myEdeltaproject to take some inspiration.)
Since we should not trust a test that we never saw failing (see also myTDD book🙂 let’s try to verify with the incomplete mirror that we learned to create by removing the Orbit URL. We should see that our local target platform cannot be validated:
1 2 3 4 5 6 7 8 9 | [INFO]Validating/home/bettini/work/eclipse/tycho/tycho-mirrors/tycho-mirrors/local.target... [ERROR]Cannotresolvetargetdefinition: [ERROR]Softwarebeinginstalled:org.eclipse.epsilon.emf.feature.feature.group... [ERROR]Missingrequirement:org.eclipse.epsilon.emg.engine... requires'osgi.bundle; org.apache.commons.math3 0.0.0'butitcouldnotbefound [ERROR]Cannotsatisfydependency:org.eclipse.epsilon.core.feature.feature.group... dependson:org.eclipse.equinox.p2.iu;org.eclipse.epsilon.emg.engine... [ERROR]Cannotsatisfydependency:org.eclipse.epsilon.emf.feature.feature.group... dependson:org.eclipse.equinox.p2.iu;org.eclipse.epsilon.core.feature.feature.group... |
Alternatively, let’s try to build our mirror with<latestVersionOnly>true</latestVersionOnly>,and during the validation of the target platform, we get:
1 2 3 4 5 | Error:Cannotresolvetargetdefinition: Error:Softwarebeinginstalled:org.eclipse.epsilon.picto.feature.feature.group2.4.0.202203041826 Error:Missingrequirement: org.eclipse.epsilon.common2.4.0.202203041826requires 'osgi.bundle; org.antlr.runtime [3.1.1,3.5.3)'butitcouldnotbefound |
In fact, we mirror only the latest version oforg.antlr.runtime(4.7.2.v20200218-0804), which does not satisfy that requirement. That’s why we must use with<latestVersionOnly>false</latestVersionOnly>in this example.
For completeness, this is the full POM:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | <?xmlversion="1.0"encoding="UTF-8"?> <projectxmlns="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>io.lorenzobettini</groupId> <artifactId>tycho-mirrors</artifactId> <version>1.0.0-SNAPSHOT</version> <packaging>pom</packaging> <properties> <tycho-version>2.7.1</tycho-version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <eclipse-version>2022-03</eclipse-version> <xtext-version>2.26.0</xtext-version> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.11.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.2.0</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>3.0.0</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>3.2.0</version> </plugin> <plugin> <groupId>org.eclipse.tycho.extras</groupId> <artifactId>tycho-eclipserun-plugin</artifactId> <version>${tycho-version}</version> </plugin> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-repository-plugin</artifactId> <version>${tycho-version}</version> </plugin> <!-- Must be called explicitly in a separate invocation target-platform-validation:validate-target-platform@validate-target-platform see also https://github.com/eclipse/tycho/issues/350 --> <plugin> <groupId>org.eclipse.tycho.extras</groupId> <artifactId>target-platform-validation-plugin</artifactId> <version>${tycho-version}</version> <executions> <!-- Binds by default to the lifecycle phase: validate. --> <execution> <id>validate-target-platform</id> <goals> <goal>validate-target-platform</goal> </goals> <configuration> <targetFiles> <targetFile>local.target</targetFile> </targetFiles> <checkDependencies>true</checkDependencies> <checkProvisioning>true</checkProvisioning> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <!-- create the local.target --> <executions> <execution> <id>create-target-file</id> <phase>process-resources</phase> <configuration> <target> <antantfile="create_local_target.ant" target="create-target-file"> </ant> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <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>${eclipse-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/releases/${eclipse-version}</url> </repository> <repository> <id>${xtext-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/modeling/tmf/xtext/updates/releases/${xtext-version}</url> </repository> <repository> <id>itemis</id> <layout>p2</layout> <url>https://download.itemis.com/updates/releases/2.1.1/</url> </repository> <repository> <id>Epsilon</id> <layout>p2</layout> <url>https://download.eclipse.org/epsilon/updates/2.4/</url> </repository> <repository> <id>Orbit ${eclipse-version}</id> <layout>p2</layout> <url>https://download.eclipse.org/tools/orbit/downloads/${eclipse-version}</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.equinox.executable.feature.group</id> </iu> <iu> <id>org.eclipse.sdk.feature.group</id> </iu> <iu> <id>org.eclipse.swtbot.eclipse.feature.group</id> </iu> <iu> <id>org.eclipse.swtbot.ide.feature.group</id> </iu> <iu> <id>org.eclipse.xtext.sdk.feature.group</id> </iu> <iu> <id>org.eclipse.emf.sdk.feature.group</id> </iu> <iu> <id>de.itemis.xtext.antlr.feature.feature.group</id> </iu> <iu> <id>org.eclipse.epsilon.picto.feature.feature.group</id> </iu> <iu> <id>org.eclipse.epsilon.emf.feature.feature.group</id> </iu> </ius> <!-- The destination directory to mirror to. --> <destination>${user.home}/eclipse-mirrors</destination> <includePacked>false</includePacked> <includeOptional>false</includeOptional> <!-- because some features, like epsilon, require an old version of org.antlr.runtime: org.eclipse.epsilon.common 2.4.0.202203041826 requires 'osgi.bundle; org.antlr.runtime [3.1.1,3.5.3)' --> <latestVersionOnly>false</latestVersionOnly> </configuration> </plugin> </plugins> </build> </project> |
And this is the YAML file to build and verify in GitHub Actions:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | name: Mirror and Verify on: push: paths-ignore: -'README.md' pull_request: paths-ignore: -'README.md' jobs: build: strategy: matrix: os: ['ubuntu-latest','macos-latest','windows-latest'] fail-fast: false runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v2 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 - name: Cache Maven packages uses: actions/cache@v2 with: path: ~/.m2 key: ${{runner.os}}-m2-${{hashFiles('**/pom.xml','**/*.yml','**/*.target')}} restore-keys: ${{runner.os}}-m2- - name: Cache Mirror uses: actions/cache@v2 with: path: ~/eclipse-mirrors key: ${{runner.os}}-p2-mirror-${{hashFiles('**/pom.xml','**/*.target')}} # the key match must be perfect: # if we change the mirror or the tp we invalidate the cache - name: Build the Mirror run: mvn package working-directory: tycho-mirrors - name: Verify the TP against the Mirror run: mvn target-platform-validation:validate-target-platform@validate-target-platform working-directory: tycho-mirrors - name: Show output contents run: tree ~/eclipse-mirrors if: runner.os == 'Linux' |
I hope you found this post valuable, and happy mirroring! 🙂




