{"record":{"id":"5e166101c1f33161","repo":"GoogleContainerTools/jib","slug":"invalid-value-for-containerizingmode-invalidco-5e1661","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/BuildTarMojo.java","lineNumber":103,"sourceCode":"      GlobalConfig globalConfig = GlobalConfig.readConfig();\n      updateCheckFuture = MojoCommon.newUpdateChecker(projectProperties, globalConfig, getLog());\n\n      PluginConfigurationProcessor.createJibBuildRunnerForTarImage(\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":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/GoogleContainerTools/jib/blob/fb949e2676afbbd7dd7a1ef61e20251931325654/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/BuildTarMojo.java#L85-L121","documentation":"BuildTarMojo.execute throws this when <container><containerizingMode> has a value jib does not recognize. InvalidContainerizingModeException carries the invalid mode; valid values are 'exploded' and 'packaged'.","triggerScenarios":"Running 'mvn jib:buildTar' with <containerizingMode> set to a misspelled or unsupported value like 'explode', 'war', or 'fast'.","commonSituations":"Typos when enabling exploded mode for faster iteration; copying config from blog posts describing old jib versions where the mode name differed.","solutions":["Set the value to exactly 'exploded' or 'packaged'.","Remove the <containerizingMode> element to use the default ('exploded' for newer jib).","Upgrade jib-maven-plugin if the mode was introduced in a newer release than you use."],"exampleFix":"<!-- before -->\n<container><containerizingMode>explode</containerizingMode></container>\n<!-- after -->\n<container><containerizingMode>exploded</containerizingMode></container>","handlingStrategy":"validation","validationCode":"String mode = \"explode\";\njava.util.Set<String> valid = java.util.Set.of(\"exploded\", \"packaged\");\nif (!valid.contains(mode)) throw new IllegalArgumentException(\"invalid containerizingMode: \" + mode);","typeGuard":null,"tryCatchPattern":"try { ... } catch (MojoExecutionException e) { if (e.getMessage().startsWith(\"invalid value for <containerizingMode>\")) { /* use exploded|packaged */ } throw e; }","preventionTips":["Only use the documented values 'exploded' and 'packaged'","Copy config snippets from the official jib documentation, not blogs","Omit the element to use the default mode"],"tags":["maven","jib","enum-value","configuration"],"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-14T05:17:10.506Z"}