Skip to content

Separate "resolve" repo from "target" repo config #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lbruun opened this issue Mar 28, 2025 · 0 comments
Open

Separate "resolve" repo from "target" repo config #122

lbruun opened this issue Mar 28, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@lbruun
Copy link

lbruun commented Mar 28, 2025

New feature, improvement proposal

Background: The plugin needs to update the maven-metadata.xml file. Hence it needs to download it from somewhere. This is what I call the "resolve" repo. It is usually the same as the "target" repo. But not in every case.

Suppose the requirement is to use the plugin solely to create local copy of what will (at a later stage) be uploaded to the target repo. Hence, we have:

    <properties>
        <altDeploymentRepository>local::file:./target/staging-deploy</altDeploymentRepository>
    </properties>

The above setup will (AFAIK) attempt the download the maven-metadata.xml file from the above file URL. No such file will be present so it will assume that this is the first version of the GAV to be uploaded and it will therefore create the metadata file accordingly. Which is wrong.

I believe that what we need is a config knob that allows to use another URL for "resolve" of the metadata vs the URL where the upload happens.

@lbruun lbruun added the enhancement New feature or request label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant