{
  "id": "java/maven-plugin-execution-error",
  "signature": "Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project my-app: Compilation failure: module not found: com.example.util",
  "signature_zh": "在项目 my-app 上执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) 失败：编译失败：找不到模块 com.example.util",
  "regex": "Failed\\ to\\ execute\\ goal\\ org\\.apache\\.maven\\.plugins:maven\\-compiler\\-plugin:3\\.10\\.1:compile\\ \\(default\\-compile\\)\\ on\\ project\\ my\\-app:\\ Compilation\\ failure:\\ module\\ not\\ found:\\ com\\.example\\.util",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The Java module system requires explicit module declarations, and a required module is missing or not declared in module-info.java.",
  "root_cause_type": "generic",
  "root_cause_zh": "Java 模块系统需要显式模块声明，并且所需的模块缺失或未在 module-info.java 中声明。",
  "versions": [
    {
      "version": "9+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing module-info.java entirely",
      "why_fails": "The project may be designed for Java 9+, and removing module-info can break encapsulation.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding the module to the classpath instead of module path",
      "why_fails": "Maven compiler plugin may still enforce module path for Java 9+.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the required module to module-info.java",
      "success_rate": 0.95,
      "how": "module my.app { requires com.example.util; }",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use --add-modules compiler argument if module is on classpath",
      "success_rate": 0.8,
      "how": "<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><compilerArgs><arg>--add-modules</arg><arg>com.example.util</arg></compilerArgs></configuration></plugin>",
      "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-08-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}