mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-122332 - Repeated errors for missing Maven repo files. Fix only in logging required
GitOrigin-RevId: 80361d5b0b09e83207679157f0ec12588ea1caec
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bf3c2af2ab
commit
ea957aee53
@@ -364,7 +364,13 @@ public class MavenIndex implements MavenSearchIndex {
|
||||
|
||||
private void handleUpdateException(Exception e) {
|
||||
myFailureMessage = e.getMessage();
|
||||
MavenLog.LOG.warn("Failed to update Maven indices for: [" + myId.getValue() + "] " + myRepositoryPathOrUrl, e);
|
||||
if (myFailureMessage.contains("nexus-maven-repository-index.properties") && myFailureMessage.contains("FileNotFoundException")) {
|
||||
myFailureMessage = "Repository is non-nexus repo, or does not indexed";
|
||||
MavenLog.LOG.debug("Failed to update Maven indices for: [" + myId.getValue() + "] " + myRepositoryPathOrUrl, e);
|
||||
} else {
|
||||
MavenLog.LOG.warn("Failed to update Maven indices for: [" + myId.getValue() + "] " + myRepositoryPathOrUrl, e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private int createContext(File contextDir, String suffix) throws MavenServerIndexerException {
|
||||
@@ -544,8 +550,8 @@ public class MavenIndex implements MavenSearchIndex {
|
||||
@TestOnly
|
||||
public synchronized void printInfo() {
|
||||
doIndexTask(() -> {
|
||||
System.out.println("BaseFile: " + myData.groupToArtifactMap.getBaseFile());
|
||||
System.out.println("All data objects: " + myData.groupToArtifactMap.getAllDataObjects(null));
|
||||
MavenLog.LOG.debug("BaseFile: " + myData.groupToArtifactMap.getBaseFile());
|
||||
MavenLog.LOG.debug("All data objects: " + myData.groupToArtifactMap.getAllDataObjects(null));
|
||||
return null;
|
||||
}, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user