{"record":{"id":"9e18074a2781ce84","repo":"GoogleContainerTools/jib","slug":"error-running-extension-extensionclassname-m-9e1807","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/BuildTarMojo.java","lineNumber":139,"sourceCode":"\n    } catch (InvalidFilesModificationTimeException ex) {\n      throw new MojoExecutionException(\n          \"<container><filesModificationTime> should be an ISO 8601 date-time (see \"\n              + \"DateTimeFormatter.ISO_DATE_TIME) or special keyword \\\"EPOCH_PLUS_SECOND\\\": \"\n              + ex.getInvalidFilesModificationTime(),\n          ex);\n\n    } catch (InvalidCreationTimeException ex) {\n      throw new MojoExecutionException(\n          \"<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","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildTarMojo.java#L121-L157","documentation":"Thrown as a MojoExecutionException from BuildTarMojo.execute when a configured Jib plugin extension (JibPluginExtensionException) fails during the build. The message wraps the extension class's fully-qualified name and the extension's own error message, so the root cause usually lies in the extension, not core Jib.","triggerScenarios":"Configuring a <plugin><dependencies> extension (e.g. jib-spring-boot-extension-maven, jib-ownership-extension-maven, or a custom JibPluginExtension) via -Djib.extension.<name>=<class> or plugin configuration, and the extension throws while transforming the build configuration.","commonSituations":"Extension applied to a project it doesn't support (e.g. Spring Boot extension on a non-Boot project), incompatible extension/Jib version, or a custom extension bug surfaced by extension-specific messages.","solutions":["Read the inner <message> and caused-by stack trace in the Maven output — it names the extension and its own failure reason.","Check the extension's compatibility with your Jib plugin version; upgrade both to latest release.","Verify the extension is applicable to your project type (e.g. only apply the Spring Boot extension to Spring Boot apps).","Temporarily remove/disable the extension (-Djib.extension... unset) to confirm the base build succeeds, then re-add configuration incrementally."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Maven CLI: re-run with full cause chain\nmvn jib:buildTar -e --errors\n// In build scripts, treat extension failures as non-retryable config bugs; pin extension\n// and Jib plugin versions together in <pluginManagement>.","preventionTips":["Keep extension and Jib plugin versions aligned and upgraded together.","Only apply extensions to supported project types (e.g. Spring Boot extension for Boot apps).","Test extension configuration in isolation on a minimal project.","Read the extension's own message inside the wrapper before changing Jib config."],"tags":["maven","jib","plugin-extension"],"backgroundTag":"api-error-response","analyzedSha":"fb949e2676afbbd7dd7a1ef61e20251931325654","analyzedAt":"2026-09-06T14:04:09.491Z","contentChangedAt":"2026-09-06T14:04:09.491Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}