{"record":{"id":"bcf1e55e4336cc7f","repo":"apache/maven","slug":"it-is-highly-recommended-to-fix-these-problems-bec","errorCode":null,"errorMessage":"It is highly recommended to fix these problems because they threaten the stability of your build.","messagePattern":"It is highly recommended to fix these problems because they threaten the stability of your build\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"impl/maven-core/src/main/java/org/apache/maven/project/collector/DefaultProjectsSelector.java","lineNumber":93,"sourceCode":"                        \"{} {} encountered while building the effective model for '{}' (use -e to see details)\",\n                        problemsCount,\n                        (problemsCount == 1) ? \"problem was\" : \"problems were\",\n                        result.getProjectId());\n\n                if (request.isShowErrors()) { // this means -e or -X (as -X enables -e as well)\n                    for (ModelProblem problem : result.getProblems()) {\n                        String loc = ModelProblemUtils.formatLocation(problem, result.getProjectId());\n                        LOGGER.warn(\"{}{}\", problem.getMessage(), ((loc != null && !loc.isEmpty()) ? \" @ \" + loc : \"\"));\n                    }\n                }\n            }\n        }\n\n        if (totalProblemsCount > 0) {\n            LOGGER.warn(\"\");\n            LOGGER.warn(\"Total model problems reported: {}\", totalProblemsCount);\n            LOGGER.warn(\"\");\n            LOGGER.warn(\"It is highly recommended to fix these problems\"\n                    + \" because they threaten the stability of your build.\");\n            LOGGER.warn(\"\");\n            LOGGER.warn(\"For this reason, future Maven versions might no\"\n                    + \" longer support building such malformed projects.\");\n            LOGGER.warn(\"\");\n        }\n\n        return projects;\n    }\n}\n","sourceCodeStart":75,"sourceCodeEnd":104,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-core/src/main/java/org/apache/maven/project/collector/DefaultProjectsSelector.java#L75-L104","documentation":"Second advisory line of the model-problem report, printed whenever the total problem count is positive. It is fixed text with no placeholders and states Maven's recommendation: the recorded problems threaten build stability even when the build succeeds. It is purely informational and pairs with the 'future Maven versions' warning that follows it.","triggerScenarios":"Printed unconditionally after 'Total model problems reported: {}' when totalProblemsCount > 0; there is no separate condition that produces this line without the total line.","commonSituations":"Teams treating it as noise in CI logs; builds that pass today but rely on lenient model handling that later Maven releases turn into hard errors.","solutions":["Do not suppress this line; instead reduce the problem total shown on the line above it to zero","Use mvn -e to get the per-problem detail and fix each one","Track model hygiene in code review: fail CI on any 'Total model problems reported' occurrence"],"exampleFix":"# before: tolerated warnings\n# [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.\n\n# after: enforce zero model problems in CI\nmvn -e clean install 2>&1 | tee build.log\n! grep -q 'Total model problems reported' build.log || { echo 'model problems present'; exit 1; }","handlingStrategy":"validation","validationCode":"# Do not ship builds that print the stability advisory\nmvn clean verify > build.log 2>&1 || { tail -100 build.log; exit 1; }\n! grep -q 'threaten the stability of your build' build.log || { echo 'model problems present'; exit 1; }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Never configure logging to hide this advisory; fix the underlying model problems instead","Document in CONTRIBUTING that POM changes must not introduce model-problem warnings","Rehearse builds with the newest Maven release so tolerated problems surface before they harden"],"tags":["maven","model-building","advisory","build-stability"],"backgroundTag":"maven-model-problems","analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}