{
  "id": "java/maven-checkstyle-violation",
  "signature": "Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.3.0:check (validate) on project my-app: You have 15 checkstyle violations. For details see /path/to/checkstyle-result.xml",
  "signature_zh": "在项目 my-app 上执行目标 org.apache.maven.plugins:maven-checkstyle-plugin:3.3.0:check (validate) 失败：您有 15 个 checkstyle 违规。详情请参见 /path/to/checkstyle-result.xml。",
  "regex": "Failed\\ to\\ execute\\ goal\\ org\\.apache\\.maven\\.plugins:maven\\-checkstyle\\-plugin:3\\.3\\.0:check\\ \\(validate\\)\\ on\\ project\\ my\\-app:\\ You\\ have\\ 15\\ checkstyle\\ violations\\.\\ For\\ details\\ see\\ /path/to/checkstyle\\-result\\.xml",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The code does not conform to the defined checkstyle rules (e.g., naming conventions, indentation).",
  "root_cause_type": "generic",
  "root_cause_zh": "代码不符合定义的 checkstyle 规则（例如命名约定、缩进）。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Disabling checkstyle entirely by removing the plugin",
      "why_fails": "The project may have coding standards that must be enforced.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Suppressing all violations with @SuppressWarnings",
      "why_fails": "This bypasses the rules but does not fix the underlying issues.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Fix the violations based on the checkstyle report",
      "success_rate": 0.9,
      "how": "Review /path/to/checkstyle-result.xml and correct the code accordingly.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Adjust the checkstyle configuration to allow specific violations",
      "success_rate": 0.85,
      "how": "<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-checkstyle-plugin</artifactId><configuration><suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation></configuration></plugin>",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-11-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}