Skip to content

[MNG-7529] Maven resolver makes bad repository choices#789

Closed
hgschmie wants to merge 1 commit intoapache:masterfrom
hgschmie:integration-test-branch
Closed

[MNG-7529] Maven resolver makes bad repository choices#789
hgschmie wants to merge 1 commit intoapache:masterfrom
hgschmie:integration-test-branch

Conversation

@hgschmie
Copy link
Copy Markdown
Contributor

Testing integration tests

Ensure that any versions resolved as part of a version range request
only reference repositories that are actually enabled for the type of
version (SNAPSHOT versions against snapshot repos, release versions
against release repositories).
@hgschmie
Copy link
Copy Markdown
Contributor Author

got the integration tests to work.

@hgschmie hgschmie closed this Aug 22, 2022
@hgschmie hgschmie deleted the integration-test-branch branch August 22, 2022 22:30
return true;
}

boolean snapshot = version != null && version.endsWith( SNAPSHOT );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about timestamped snapshots?

Copy link
Copy Markdown
Contributor Author

@hgschmie hgschmie Aug 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cstamas ,

Thank you for looking at this. I do not understand this comment. The check is similar to the code in the DefaultVersionResolver (where it determines whether a local file is a SNAPSHOT version by checking that it ends with 'SNAPSHOT' (https://github.com/apache/maven/blob/master/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java#L208).

Can you explain a bit more what you mean by "timestamped snapshots" ?

@jira-importer
Copy link
Copy Markdown

Resolve #8932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants