{
  "id": "java/maven-surefire-test-failure",
  "signature": "Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project my-app: There are test failures. Please refer to /path/to/surefire-reports for the individual test results.",
  "signature_zh": "在项目 my-app 上执行目标 org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) 失败：存在测试失败。请参考 /path/to/surefire-reports 查看各个测试结果。",
  "regex": "Failed\\ to\\ execute\\ goal\\ org\\.apache\\.maven\\.plugins:maven\\-surefire\\-plugin:3\\.0\\.0\\-M7:test\\ \\(default\\-test\\)\\ on\\ project\\ my\\-app:\\ There\\ are\\ test\\ failures\\.\\ Please\\ refer\\ to\\ /path/to/surefire\\-reports\\ for\\ the\\ individual\\ test\\ results\\.",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "One or more unit tests failed during the test phase, causing the build to fail.",
  "root_cause_type": "generic",
  "root_cause_zh": "一个或多个单元测试在测试阶段失败，导致构建失败。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Skipping tests entirely without fixing them",
      "why_fails": "The tests may catch real bugs, and skipping them can lead to production issues.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Deleting the test files to avoid failures",
      "why_fails": "This removes test coverage and may violate project requirements.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Fix the failing test by analyzing the surefire report and adjusting the test code",
      "success_rate": 0.9,
      "how": "Check /path/to/surefire-reports/*.txt for stack traces, then fix the test logic.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Temporarily skip tests using -DskipTests or -Dmaven.test.skip=true",
      "success_rate": 0.95,
      "how": "mvn install -DskipTests",
      "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-01-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}