{"record":{"id":"161a2da37b328b7b","repo":"apache/maven","slug":"declared-at-location-s","errorCode":null,"errorMessage":"  Declared at location(s):","messagePattern":"  Declared at location\\(s\\):","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java","lineNumber":235,"sourceCode":"\n        if (hasAnythingToReport(issuesMap, issueLocalitiesToReport)) {\n            logger.warn(\"\");\n            logger.warn(\"Plugin {} validation issues were detected in following plugin(s)\", issueLocalitiesToReport);\n            logger.warn(\"\");\n\n            // Sorting the plugins\n            List<Map.Entry<String, PluginValidationIssues>> sortedEntries = new ArrayList<>(issuesMap.entrySet());\n            sortedEntries.sort(Map.Entry.comparingByKey(String.CASE_INSENSITIVE_ORDER));\n\n            for (Map.Entry<String, PluginValidationIssues> entry : sortedEntries) {\n                PluginValidationIssues issues = entry.getValue();\n                if (!hasAnythingToReport(issues, issueLocalitiesToReport)) {\n                    continue;\n                }\n                logger.warn(\" * {}\", entry.getKey());\n                if (validationReportLevel == ValidationReportLevel.VERBOSE) {\n                    if (!issues.pluginDeclarations.isEmpty()) {\n                        logger.warn(\"  Declared at location(s):\");\n                        for (String pluginDeclaration : issues.pluginDeclarations) {\n                            logger.warn(\"   * {}\", pluginDeclaration);\n                        }\n                    }\n                    if (!issues.pluginIssues.isEmpty()) {\n                        for (IssueLocality issueLocality : issueLocalitiesToReport) {\n                            Set<String> pluginIssues = issues.pluginIssues.get(issueLocality);\n                            if (pluginIssues != null && !pluginIssues.isEmpty()) {\n                                logger.warn(\"  Plugin {} issue(s):\", issueLocality);\n                                for (String pluginIssue : pluginIssues) {\n                                    logger.warn(\"   * {}\", pluginIssue);\n                                }\n                            }\n                        }\n                    }\n                    if (!issues.mojoIssues.isEmpty()) {\n                        for (IssueLocality issueLocality : issueLocalitiesToReport) {\n                            Map<String, LinkedHashSet<String>> mojoIssues = issues.mojoIssues.get(issueLocality);","sourceCodeStart":217,"sourceCodeEnd":253,"githubUrl":"https://github.com/apache/maven/blob/e4093d4e120eac99d6bdce5ba67cace2f3085c97/impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java#L217-L253","documentation":"Header of the 'Declared at location(s):' section inside the VERBOSE-level plugin validation report. When validationReportLevel == VERBOSE and the plugin recorded where it was declared, the manager lists every POM (file path plus line, captured via InputLocation when a mojo of the plugin ran) that declares the plugin. It exists so you know exactly which POM files to edit to fix or upgrade the offending plugin.","triggerScenarios":"Build with -Dmaven.plugin.validation=verbose where a plugin with collected issues has a non-empty pluginDeclarations set (mojo execution populated it via pluginDeclaration(mavenSession, mojoDescriptor)).","commonSituations":"Large reactors where the flagged plugin is declared in several module POMs or inherited from an intermediate parent; corporate parents referenced via relativePath where the actual declaring file is not obvious.","solutions":["Open each listed pom.xml location and update or remove the stale plugin declaration","Centralize the plugin version in the top-level parent's <pluginManagement> and drop per-module <version> tags","If locations point into a remote/parent POM you do not control, override the version in your own pluginManagement"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"# find every declaration of the flagged plugin before the build\nfind . -name pom.xml -print0 | xargs -0 grep -n -A 3 '<artifactId>maven-compiler-plugin</artifactId>'","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Declare plugins once in the parent's pluginManagement; avoid repeating <version> per module","Use verbose validation when triaging so declaration locations are reported automatically"],"tags":["maven","plugin-validation","build-report","pom-location"],"backgroundTag":"plugin-validation-report","analyzedSha":"e4093d4e120eac99d6bdce5ba67cace2f3085c97","analyzedAt":"2026-08-21T22:58:24.034Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}