diff --git a/archetype-common/src/main/java/org/apache/maven/archetype/DefaultArchetypeManager.java b/archetype-common/src/main/java/org/apache/maven/archetype/DefaultArchetypeManager.java index dae46667..56e7e54e 100644 --- a/archetype-common/src/main/java/org/apache/maven/archetype/DefaultArchetypeManager.java +++ b/archetype-common/src/main/java/org/apache/maven/archetype/DefaultArchetypeManager.java @@ -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(); } } @@ -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(); } } @@ -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(); } }