{
  "id": "java/maven-proxy-authentication-failure",
  "signature": "Could not transfer artifact com.example:lib:1.0.0 from/to central (https://repo.maven.apache.org/maven2): authentication failed for proxy: Proxy authentication required",
  "signature_zh": "无法从/向中央仓库 (https://repo.maven.apache.org/maven2) 传输工件 com.example:lib:1.0.0：代理认证失败：需要代理认证。",
  "regex": "Could\\ not\\ transfer\\ artifact\\ com\\.example:lib:1\\.0\\.0\\ from/to\\ central\\ \\(https://repo\\.maven\\.apache\\.org/maven2\\):\\ authentication\\ failed\\ for\\ proxy:\\ Proxy\\ authentication\\ required",
  "domain": "java",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Maven is configured to use a proxy that requires authentication, but the credentials are missing or incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "Maven 配置为使用需要认证的代理，但凭据缺失或不正确。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Disabling the proxy in settings.xml",
      "why_fails": "If the network requires a proxy, disabling it will cause connection timeouts.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using incorrect credentials in settings.xml",
      "why_fails": "The proxy will reject the authentication, and the build will fail.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Configure the proxy with correct credentials in settings.xml",
      "success_rate": 0.95,
      "how": "<proxies><proxy><id>myproxy</id><username>user</username><password>pass</password><host>proxy.company.com</host><port>8080</port></proxy></proxies>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use environment variables for proxy authentication",
      "success_rate": 0.9,
      "how": "export MAVEN_OPTS='-Dhttp.proxyHost=proxy.company.com -Dhttp.proxyPort=8080 -Dhttp.proxyUser=user -Dhttp.proxyPassword=pass'",
      "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-07-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}