From 600d3227de35a8cf8acb6d294fa94c2837a8c0cd Mon Sep 17 00:00:00 2001 From: Jonathan Schneider Date: Tue, 26 Sep 2023 22:48:40 -0500 Subject: [PATCH] Rocksdb graceful fallback to in-mem --- src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java b/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java index 16b64455..daf59b34 100644 --- a/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java +++ b/src/main/java/org/openrewrite/maven/MavenMojoProjectParser.java @@ -513,7 +513,7 @@ private static MavenPomCache getPomCache(@Nullable String pomCacheDirectory, Log new RocksdbMavenPomCache(Paths.get(pomCacheDirectory)) ); } - } catch (Exception e) { + } catch (Throwable e) { logger.warn("Unable to initialize RocksdbMavenPomCache, falling back to InMemoryMavenPomCache"); logger.debug(e); }