{
  "id": "java/maven-compilation-package-not-exists",
  "signature": "Compilation failure: package com.example.util does not exist",
  "signature_zh": "编译失败：包 com.example.util 不存在",
  "regex": "Compilation\\ failure:\\ package\\ com\\.example\\.util\\ does\\ not\\ exist",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "A required Java package is missing from the classpath, often due to a missing dependency or incorrect module path.",
  "root_cause_type": "generic",
  "root_cause_zh": "类路径中缺少必需的 Java 包，通常是由于缺少依赖或模块路径不正确。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding a random dependency with similar groupId but different artifactId",
      "why_fails": "The package name is specific to the correct artifact; a different artifact may not contain it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually copying the jar file to the project's lib folder without updating pom.xml",
      "why_fails": "Maven does not automatically include local jars unless configured as system scope.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the correct dependency to pom.xml",
      "success_rate": 0.95,
      "how": "<dependency><groupId>com.example</groupId><artifactId>example-utils</artifactId><version>1.0.0</version></dependency>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use mvn dependency:copy-dependencies to verify classpath",
      "success_rate": 0.8,
      "how": "mvn dependency:copy-dependencies -DoutputDirectory=target/lib",
      "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-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}