Skip to content

tycho-dependency-tools:generate-target doesn't respect mirrors #5834

@Frettman

Description

@Frettman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions