diff --git a/maven-plugins/build-cache-maven-extension/src/main/java/io/helidon/build/maven/cache/ProjectExecutionManager.java b/maven-plugins/build-cache-maven-extension/src/main/java/io/helidon/build/maven/cache/ProjectExecutionManager.java index 42975d99b..30e50ad47 100644 --- a/maven-plugins/build-cache-maven-extension/src/main/java/io/helidon/build/maven/cache/ProjectExecutionManager.java +++ b/maven-plugins/build-cache-maven-extension/src/main/java/io/helidon/build/maven/cache/ProjectExecutionManager.java @@ -185,6 +185,9 @@ private List resolvePhase(MavenProject project, String phase) { try { lock.lock(); Lifecycle lifecycle = defaultLifecycles.get(phase); + if (lifecycle == null) { + return List.of(); + } LifecycleMappingDelegate lifecycleDelegate = null; if (Arrays.binarySearch(DefaultLifecycles.STANDARD_LIFECYCLES, lifecycle.getId()) < 0) { lifecycleDelegate = lifecycleDelegates.get(lifecycle.getId());