Skip to content

[MRESOLVER-369] Introduce update check policy scope - #297

Closed
cstamas wants to merge 6 commits into
apache:masterfrom
cstamas:MRESOLVER-369
Closed

cstamas wants to merge 6 commits into
apache:masterfrom
cstamas:MRESOLVER-369

Conversation

@cstamas

@cstamas cstamas commented Jun 3, 2023

Copy link
Copy Markdown
Member

This change introduces new configuration: update check policy scope, that limits where (artifact, metadata, both) the update policy is applied. If update policy is not applied, presence/absence decides instead.

To achieve "old" behaviour (ie. for use in Maven3), the configuration properties should always be set to "all" in session factory.


https://issues.apache.org/jira/browse/MRESOLVER-369

This change introduces new configuration: update check policy scope,
that limits where (artifact, metadata, both) the update policy is
applied. If update policy is not applied, presence/absence decides
instead.

To achieve "old" behaviour (ie. for use in Maven3), the configuration
properties should always be set to "all" in session factory.

---

https://issues.apache.org/jira/browse/MRESOLVER-369
@cstamas cstamas self-assigned this Jun 3, 2023
@cstamas
cstamas requested review from gnodet and michael-o June 11, 2023 10:19
@cstamas cstamas added this to the 1.9.11 milestone Jun 11, 2023
@cstamas

cstamas commented Jun 12, 2023

Copy link
Copy Markdown
Member Author

PR is on-hold: testing shows that now when Maven "remembers" that Artifact cannot be downloaded, there is no way to get out of it (-U does not help, as policy is not applied to artifact by default anymore, before it simply went here as -U was "always", and implicitly cleared the error flags as well, so it "fixed" things).

IMO, this stems from the fact that policy ALWAYS was simply misused on Maven side (-U), and instead, "force update" on maven side may mean something else, like:

  • set update policy to ALWAYS
  • set cache not found/transfer to false
  • ... (what else?)

@cstamas
cstamas marked this pull request as draft June 12, 2023 17:25
@cstamas cstamas removed this from the 1.9.11 milestone Jun 13, 2023
@michael-o
michael-o removed their request for review June 16, 2023 12:41
@cstamas

cstamas commented Jun 30, 2023

Copy link
Copy Markdown
Member Author

MRESOLVER-377 is proper fix

@jira-importer

Copy link
Copy Markdown

Resolve #1044

1 similar comment
@jira-importer

Copy link
Copy Markdown

Resolve #1044

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