{
  "id": "java/maven-site-plugin-error",
  "signature": "Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.12.0:site (default-site) on project my-app: Error generating site: java.io.IOException: Unable to create directory /path/to/target/site",
  "signature_zh": "在项目 my-app 上执行目标 org.apache.maven.plugins:maven-site-plugin:3.12.0:site (default-site) 失败：生成站点时出错：java.io.IOException: 无法创建目录 /path/to/target/site。",
  "regex": "Failed\\ to\\ execute\\ goal\\ org\\.apache\\.maven\\.plugins:maven\\-site\\-plugin:3\\.12\\.0:site\\ \\(default\\-site\\)\\ on\\ project\\ my\\-app:\\ Error\\ generating\\ site:\\ java\\.io\\.IOException:\\ Unable\\ to\\ create\\ directory\\ /path/to/target/site",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The target directory is not writable or the filesystem is full, preventing the site plugin from creating output directories.",
  "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": "Changing the site output directory to a random path",
      "why_fails": "The new path may also have permission issues or be non-existent.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Running Maven as root",
      "why_fails": "This is a security risk and may not solve filesystem full issues.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the target directory exists and is writable",
      "success_rate": 0.95,
      "how": "mkdir -p /path/to/target && chmod 755 /path/to/target",
      "condition": "",
      "sources": []
    },
    {
      "action": "Free up disk space or use a different output directory",
      "success_rate": 0.9,
      "how": "mvn site -Dsite.outputDirectory=/tmp/site",
      "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-05-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}