[
https://issues.apache.org/jira/browse/MRESOLVER-371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733488#comment-17733488
]
ASF GitHub Bot commented on MRESOLVER-371:
------------------------------------------
cstamas opened a new pull request, #300:
URL: https://github.com/apache/maven-resolver/pull/300
When file does not exists. Also, make the method more robust.
---
https://issues.apache.org/jira/browse/MRESOLVER-371
> Unjustified WARNING log added by MRESOLVER-364
> ----------------------------------------------
>
> Key: MRESOLVER-371
> URL: https://issues.apache.org/jira/browse/MRESOLVER-371
> Project: Maven Resolver
> Issue Type: Bug
> Components: Resolver
> Affects Versions: 1.9.11
> Reporter: Tamas Cservenak
> Priority: Minor
>
> The MRESOLVER-364 returned locking (to make resolver not fight over with
> maven-compat), but the code contains an unjustified WARN emitted when local
> repo is empty.
> The WARNING is ugly, but otherwise harmless.
> The warning is not needed.
> Old code:
> https://github.com/apache/maven-resolver/commit/fcb6be59c5a5855573886b09c70dab80074a1d27#diff-5957e1d4f9b8c4608b455583357f57f67e8904b3fb18d5d7c6b030dc33533af3L179-L196
> New code re-added:
> https://github.com/apache/maven-resolver/pull/295/files#diff-20bf29fc84cbd13fc224fadf4458f7c96aaad438ad9e44ccac5fc4150a729a7fR121-R133
> Example of similar code in Maven4:
> https://github.com/apache/maven/blob/master/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L1621-L1627
> Proposed solution: either just remove WARN, or make the whole method as in
> Maven4 (w/ addition of string.intern). Or, seek some other way to provide
> mutex?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)