[
https://issues.apache.org/jira/browse/MRESOLVER-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17749103#comment-17749103
]
Tamas Cservenak commented on MRESOLVER-392:
-------------------------------------------
Idea: let DefaultInstaller get new param: "reinstallPolicy": "allow" (as today
with equality check removed, just ALWAYS install), "warn" (simple check, if
target exists, WARN but reinstall), and "fail" (if local repo target exists,
fail).
Default would be "warn".
> Resolver installer should not be "smart" about installs
> -------------------------------------------------------
>
> Key: MRESOLVER-392
> URL: https://issues.apache.org/jira/browse/MRESOLVER-392
> Project: Maven Resolver
> Issue Type: Bug
> Reporter: Tamas Cservenak
> Priority: Major
> Fix For: 1.10.0
>
>
> Seems in some cases (equality by timestamp and file size) DefaultInstaller
> will NOT install the requested file, and log this fact on DEBUG level.
> This is wrong: resolver should NOT be "smart" in this case. IMO, if "install
> request" flies it, resolver should install unconditionally.
> Or, maybe perform some more checks, and refuse install in case like:
> * release artifact that is already present in local repository?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)