@@ -738,17 +738,17 @@ private void load() {
738
738
return ;
739
739
}
740
740
setupPaths ();
741
- if (tryLoadingExistingFile ()) {
742
- return ;
743
- }
744
741
for (val repo : localMavenRepositories ) {
745
- if (tryDownloadFromMaven (repo )) {
742
+ if (tryDownloadFromMaven (repo , true )) {
746
743
return ;
747
744
}
748
745
}
746
+ if (tryLoadingExistingFile ()) {
747
+ return ;
748
+ }
749
749
validateDownloadsAllowed ();
750
750
for (var repo : remoteMavenRepositories ) {
751
- if (tryDownloadFromMaven (repo )) {
751
+ if (tryDownloadFromMaven (repo , false )) {
752
752
return ;
753
753
}
754
754
}
@@ -868,7 +868,7 @@ private void validateDownloadsAllowed() {
868
868
}
869
869
870
870
private static final Object mutex = new Object ();
871
- private boolean tryDownloadFromMaven (String repo ) {
871
+ private boolean tryDownloadFromMaven (String repo , boolean local ) {
872
872
synchronized (mutex ) {
873
873
try {
874
874
if (!repo .endsWith ("/" )) {
@@ -918,9 +918,11 @@ private boolean tryDownloadFromMaven(String repo) {
918
918
case OK :
919
919
break ;
920
920
case MISSING :
921
- LOG .warn ("The library {} had no checksum available on the repository.\n "
922
- + "There's a chance it might have gotten corrupted during download,\n "
923
- + "but we're loading it anyways." , artifactLogName );
921
+ if (!local ) {
922
+ LOG .warn ("The library {} had no checksum available on the repository.\n "
923
+ + "There's a chance it might have gotten corrupted during download,\n "
924
+ + "but we're loading it anyways." , artifactLogName );
925
+ }
924
926
}
925
927
loadedLibraries .put (artifact , preferredVersion );
926
928
loadedLibraryMods .put (artifact , loadingModId );
0 commit comments