[ https://issues.apache.org/jira/browse/MRESOLVER-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17749103#comment-17749103 ]
Tamas Cservenak edited comment on MRESOLVER-392 at 7/31/23 9:27 AM: -------------------------------------------------------------------- Idea: let DefaultInstaller get new param: "reinstallPolicy": "allow" (as today with equality check removed, just ALWAYS reinstall), "warn" (simple check, if target exists, WARN but reinstall), and "fail" (if local repo target exists, fail). Default would be "warn". was (Author: cstamas): 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)