{
  "id": "java/maven-repository-mirror-loop",
  "signature": "Could not transfer artifact com.example:lib:1.0.0 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: certificate_unknown. The repository mirror at https://internal-mirror.com/maven2 may be misconfigured.",
  "signature_zh": "无法从/向中央仓库 (https://repo.maven.apache.org/maven2) 传输工件 com.example:lib:1.0.0：收到致命警报：证书未知。位于 https://internal-mirror.com/maven2 的仓库镜像可能配置错误。",
  "regex": "Could\\ not\\ transfer\\ artifact\\ com\\.example:lib:1\\.0\\.0\\ from/to\\ central\\ \\(https://repo\\.maven\\.apache\\.org/maven2\\):\\ Received\\ fatal\\ alert:\\ certificate_unknown\\.\\ The\\ repository\\ mirror\\ at\\ https://internal\\-mirror\\.com/maven2\\ may\\ be\\ misconfigured\\.",
  "domain": "java",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The SSL certificate of the mirror repository is not trusted by the Java runtime, or the mirror is misconfigured.",
  "root_cause_type": "generic",
  "root_cause_zh": "镜像仓库的 SSL 证书不被 Java 运行时信任，或镜像配置错误。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Disabling SSL verification globally in settings.xml",
      "why_fails": "This is a security risk and may not be allowed in corporate environments.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different mirror without verifying its certificate",
      "why_fails": "The new mirror may have the same issue or be malicious.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Import the mirror's SSL certificate into the Java truststore",
      "success_rate": 0.95,
      "how": "keytool -import -alias mirror -keystore $JAVA_HOME/lib/security/cacerts -file mirror.crt",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use HTTPS with a trusted certificate or switch to HTTP if allowed",
      "success_rate": 0.9,
      "how": "<mirror><id>internal</id><url>http://internal-mirror.com/maven2</url><mirrorOf>central</mirrorOf></mirror>",
      "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": "2026-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}