Added error handling around documentation scanning
This way we atleast do not crash the application when the documentation plugin does not startup correctly.
fixes
@@ -92,7 +92,11 @@ public class DocumentationPluginsBootstrapper implements SmartLifecycle {
}
private void scanDocumentation(DocumentationContext context) {
+ try {
scanned.addDocumentation(resourceListing.scan(context));
+ } catch (Exception e) {
+ log.error(String.format("Unable to scan documentation context %s", context.getGroupName()), e);
+ }
}
private DocumentationContextBuilder defaultContextBuilder(DocumentationPlugin plugin) {
