{
  "id": "java/maven-dependency-not-found",
  "signature": "Could not resolve dependency for project com.example:my-app:jar:1.0.0: Could not find artifact com.example:missing-lib:jar:2.0.0 in central (https://repo.maven.apache.org/maven2)",
  "signature_zh": "无法为项目 com.example:my-app:jar:1.0.0 解析依赖：在中央仓库 (https://repo.maven.apache.org/maven2) 中找不到工件 com.example:missing-lib:jar:2.0.0",
  "regex": "Could\\ not\\ resolve\\ dependency\\ for\\ project\\ com\\.example:my\\-app:jar:1\\.0\\.0:\\ Could\\ not\\ find\\ artifact\\ com\\.example:missing\\-lib:jar:2\\.0\\.0\\ in\\ central\\ \\(https://repo\\.maven\\.apache\\.org/maven2\\)",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The dependency artifact is not published to the configured repositories, or the repository URL is incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "依赖工件未发布到配置的仓库，或仓库 URL 不正确。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding a random third-party repository without verifying its contents",
      "why_fails": "The repository may not contain the artifact, or it could be malicious.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Cleaning the local Maven repository (~/.m2/repository) without verifying the remote",
      "why_fails": "If the artifact is not in any remote repo, cleaning the local cache doesn't help.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the correct repository to pom.xml",
      "success_rate": 0.95,
      "how": "<repositories><repository><id>my-repo</id><url>https://my-company.com/repo</url></repository></repositories>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Install the dependency manually using mvn install:install-file",
      "success_rate": 0.9,
      "how": "mvn install:install-file -Dfile=missing-lib-2.0.0.jar -DgroupId=com.example -DartifactId=missing-lib -Dversion=2.0.0 -Dpackaging=jar",
      "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": "2024-03-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}