void (Exception e) { String failureMessage = e.getMessage(); if (failureMessage != null && failureMessage.contains("nexus-maven-repository-index.properties") && failureMessage.contains("FileNotFoundException")) { failureMessage = "Repository is non-nexus repo, or is not indexed"; MavenLog.LOG.debug("Failed to update Maven indices for: " + myRegisteredRepositoryIds + " " + myRepositoryPathOrUrl, e); } else { MavenLog.LOG.warn("Failed to update Maven indices for: " + myRegisteredRepositoryIds + " " + myRepositoryPathOrUrl, e); } myFailureMessage = failureMessage; }