Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ARCHETYPE-676] Report warning when catalog is not parsable #234

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ public ArchetypeCatalog getInternalCatalog() {

return source.getArchetypeCatalog(null, null);
} catch (ArchetypeDataSourceException e) {
getLogger()
.warn(
"failed to read catalog: " + e.getMessage(),
getLogger().isDebugEnabled() ? e : null);
return new ArchetypeCatalog();
}
}
Expand All @@ -157,6 +161,10 @@ public ArchetypeCatalog getLocalCatalog(RepositorySystemSession repositorySessio

return source.getArchetypeCatalog(repositorySession, null);
} catch (ArchetypeDataSourceException e) {
getLogger()
.warn(
"failed to read catalog: " + e.getMessage(),
getLogger().isDebugEnabled() ? e : null);
return new ArchetypeCatalog();
}
}
Expand All @@ -169,7 +177,10 @@ public ArchetypeCatalog getRemoteCatalog(

return source.getArchetypeCatalog(repositorySession, remoteRepositories);
} catch (ArchetypeDataSourceException e) {
getLogger().warn("failed to download from remote", e);
getLogger()
.warn(
"failed to download from remote" + e.getMessage(),
getLogger().isDebugEnabled() ? e : null);
return new ArchetypeCatalog();
}
}
Expand Down