{"record":{"id":"55ea3cee835d07ab","repo":"GoogleContainerTools/jib","slug":"error-running-extension-extensionclassname-m","errorCode":null,"errorMessage":"error running extension '<extensionClassName>': <message>","messagePattern":"error running extension '<extensionClassName>': <message>","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java","lineNumber":157,"sourceCode":"          \"<container><creationTime> should be an ISO 8601 date-time (see \"\n              + \"DateTimeFormatter.ISO_DATE_TIME) or a special keyword (\\\"EPOCH\\\", \"\n              + \"\\\"USE_CURRENT_TIMESTAMP\\\"): \"\n              + ex.getInvalidCreationTime(),\n          ex);\n\n    } catch (JibPluginExtensionException ex) {\n      String extensionName = ex.getExtensionClass().getName();\n      throw new MojoExecutionException(\n          \"error running extension '\" + extensionName + \"': \" + ex.getMessage(), ex);\n\n    } catch (IncompatibleBaseImageJavaVersionException ex) {\n      throw new MojoExecutionException(\n          HelpfulSuggestions.forIncompatibleBaseImageJavaVersionForMaven(\n              ex.getBaseImageMajorJavaVersion(), ex.getProjectMajorJavaVersion()),\n          ex);\n\n    } catch (InvalidImageReferenceException ex) {\n      throw new MojoExecutionException(\n          HelpfulSuggestions.forInvalidImageReference(ex.getInvalidReference()), ex);\n\n    } catch (IOException\n        | CacheDirectoryCreationException\n        | MainClassInferenceException\n        | InvalidGlobalConfigException ex) {\n      throw new MojoExecutionException(ex.getMessage(), ex);\n\n    } catch (BuildStepsExecutionException ex) {\n      throw new MojoExecutionException(ex.getMessage(), ex.getCause());\n\n    } catch (ExtraDirectoryNotFoundException ex) {\n      throw new MojoExecutionException(\n          \"<extraDirectories><paths> contain \\\"from\\\" directory that doesn't exist locally: \"\n              + ex.getPath(),\n          ex);\n    } finally {\n      tempDirectoryProvider.close();","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildDockerMojo.java#L139-L175","documentation":"A Jib plugin extension (configured via <pluginExtensions> or injected extension artifacts) threw an exception while running. BuildDockerMojo.execute() catches JibPluginExtensionException and rewraps it as a MojoExecutionException naming the extension class and its message, so the build fails during the extension phase of the dockerBuild goal.","triggerScenarios":"Running 'mvn jib:dockerBuild' with a Jib extension (e.g. jib-spring-boot or a custom JibPluginExtension) whose extensionClass threw during extendBuildContext/run, including exceptions raised inside user extension code.","commonSituations":"Custom extension code throwing due to bad extension configuration; extension version incompatible with the Jib core version; extension assuming a project layout that doesn't exist (e.g. non-Spring project with jib-spring-boot); network or file access failures inside the extension.","solutions":["Read the extension name and message in the error to identify which extension failed, then fix that extension's configuration or code.","Update the extension to a version compatible with your jib-maven-plugin version.","Temporarily remove the <pluginExtensions> or extension dependency to confirm the core build works without it.","Debug the extension's entry point (the class named in the error) and ensure it handles your project type."],"exampleFix":"// before (pom.xml)\n<pluginExtensions>\n  <pluginExtension implementation=\"com.example.BrokenJibExtension\"/>\n</pluginExtensions>\n// after: fix or remove the failing extension\n<pluginExtensions>\n  <pluginExtension implementation=\"com.example.FixedJibExtension\"/>\n</pluginExtensions>","handlingStrategy":"try-catch","validationCode":"// Verify extension compatibility before the build:\n// mvn dependency:tree -Dincludes=com.google.cloud.tools:jib-maven-plugin-extension-*","typeGuard":null,"tryCatchPattern":"try {\n  mvn jib:dockerBuild\n} catch (MojoExecutionException e) {\n  if (e.getMessage().startsWith(\"error running extension '\")) {\n    // log extension class name from message, fall back to a build without the extension\n  }\n}","preventionTips":["Keep extensions on versions matching your jib-maven-plugin version.","Test extensions in a separate profile so the core build can run without them.","Wrap risky logic in custom extensions with clear error messages."],"tags":["maven","jib","plugin-extension","build"],"backgroundTag":"extension-execution-failed","analyzedSha":"fb949e2676afbbd7dd7a1ef61e20251931325654","analyzedAt":"2026-09-06T14:04:09.491Z","contentChangedAt":"2026-09-06T14:04:09.491Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}