{"record":{"id":"59e6669d9545b4a0","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-invalidco-59e666","errorCode":null,"errorMessage":"invalid value for <containerizingMode>: <invalidContainerizingMode>","messagePattern":"invalid value for <containerizingMode>: <invalidContainerizingMode>","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildImageMojo.java","lineNumber":125,"sourceCode":"      GlobalConfig globalConfig = GlobalConfig.readConfig();\n      updateCheckFuture = MojoCommon.newUpdateChecker(projectProperties, globalConfig, getLog());\n\n      PluginConfigurationProcessor.createJibBuildRunnerForRegistryImage(\n              new MavenRawConfiguration(this),\n              new MavenSettingsServerCredentials(\n                  getSession().getSettings(), getSettingsDecrypter()),\n              projectProperties,\n              globalConfig,\n              new MavenHelpfulSuggestions(HELPFUL_SUGGESTIONS_PREFIX))\n          .runBuild();\n\n    } catch (InvalidAppRootException ex) {\n      throw new MojoExecutionException(\n          \"<container><appRoot> is not an absolute Unix-style path: \" + ex.getInvalidPathValue(),\n          ex);\n\n    } catch (InvalidContainerizingModeException ex) {\n      throw new MojoExecutionException(\n          \"invalid value for <containerizingMode>: \" + ex.getInvalidContainerizingMode(), ex);\n\n    } catch (InvalidWorkingDirectoryException ex) {\n      throw new MojoExecutionException(\n          \"<container><workingDirectory> is not an absolute Unix-style path: \"\n              + ex.getInvalidPathValue(),\n          ex);\n    } catch (InvalidPlatformException ex) {\n      throw new MojoExecutionException(\n          \"<from><platforms> contains a platform configuration that is missing required values or has invalid values: \"\n              + ex.getMessage()\n              + \": \"\n              + ex.getInvalidPlatform(),\n          ex);\n    } catch (InvalidContainerVolumeException ex) {\n      throw new MojoExecutionException(\n          \"<container><volumes> is not an absolute Unix-style path: \" + ex.getInvalidVolume(), ex);\n","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildImageMojo.java#L107-L143","documentation":"Jib validates <container><containerizingMode>, which controls how the application is packaged in the image (e.g. 'exploded' or 'packaged'). An unrecognized value raises InvalidContainerizingModeException, wrapped here into a MojoExecutionException that echoes the invalid mode string.","triggerScenarios":"Setting <containerizingMode> to anything other than the supported values (e.g. 'Exploded', 'war', 'layers', or a typo like 'explode') via pom.xml or -Djib.containerize.","commonSituations":"Misremembering the mode name for exploded WAR/jar layouts; copying config from a Jib version that supported a different mode set; case sensitivity mistakes.","solutions":["Set <containerizingMode> to a supported value, exactly: 'exploded' or 'packaged' (lowercase).","Remove the element to use the default mode.","Check the Jib version's supported modes in its documentation if a previously working value now fails."],"exampleFix":"<!-- before -->\n<containerizingMode>Exploded</containerizingMode>\n<!-- after -->\n<containerizingMode>exploded</containerizingMode>","handlingStrategy":"validation","validationCode":"Set<String> modes = Set.of(\"exploded\", \"packaged\");\nString mode = System.getProperty(\"jib.containerize\", pomMode);\nif (mode != null && !modes.contains(mode)) {\n  throw new IllegalArgumentException(\"<containerizingMode> must be one of \" + modes + \", got: \" + mode);\n}","typeGuard":null,"tryCatchPattern":"catch (MojoExecutionException e) { if (e.getMessage().contains(\"containerizingMode\")) { /* use 'exploded' or 'packaged' */ } }","preventionTips":["Use lowercase mode values exactly as documented","Check your Jib version's supported modes before upgrading","Omit the element to use the default mode"],"tags":["maven","jib","configuration","enum-value"],"backgroundTag":"invalid-enum-value","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"}