I have a working Tycho (5.0.2) build that defines a repository like this:
<repository>
<id>myrepo</id>
<url>jar:https://example.com/p2.zip!/</url>
<layout>p2</layout>
</repository>
And I have configured a mirror for it in my settings.xml like this:
<mirror>
<id>myrepo-mirror</id>
<url>jar:file:///X:/p2.zip!/</url>
<layout>p2</layout>
<mirrorOf>myrepo</mirrorOf>
<mirrorOfLayouts>p2</mirrorOfLayouts>
</mirror>
And I have confirmed that the build works with the mirror and fails without the mirror. However, when running
mvn tycho-dependency-tools:generate-target on the project, the goal fails because it can't access https://example.com/p2.zip, which means that it's not considering the mirror.
I have a working Tycho (5.0.2) build that defines a repository like this:
And I have configured a mirror for it in my settings.xml like this:
And I have confirmed that the build works with the mirror and fails without the mirror. However, when running
mvn tycho-dependency-tools:generate-targeton the project, the goal fails because it can't accesshttps://example.com/p2.zip, which means that it's not considering the mirror.