{
  "id": "java/maven-resource-filtering-error",
  "signature": "Failed to filter resource 'src/main/resources/application.properties' with value '${db.url}' for project com.example:my-app: Could not resolve placeholder 'db.url' in value '${db.url}'",
  "signature_zh": "过滤资源 'src/main/resources/application.properties' 中的值 '${db.url}' 失败，项目 com.example:my-app：无法解析占位符 'db.url'。",
  "regex": "Failed\\ to\\ filter\\ resource\\ 'src/main/resources/application\\.properties'\\ with\\ value\\ '\\$\\{db\\.url\\}'\\ for\\ project\\ com\\.example:my\\-app:\\ Could\\ not\\ resolve\\ placeholder\\ 'db\\.url'\\ in\\ value\\ '\\$\\{db\\.url\\}'",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "Maven resource filtering is enabled, but the placeholder ${db.url} is not defined in any properties file or POM.",
  "root_cause_type": "generic",
  "root_cause_zh": "Maven 资源过滤已启用，但占位符 ${db.url} 未在任何属性文件或 POM 中定义。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Disabling resource filtering entirely",
      "why_fails": "Other placeholders may need filtering, and disabling it breaks them.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding a random property with a different name",
      "why_fails": "The placeholder must match exactly; a different name won't be resolved.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Define the property in pom.xml",
      "success_rate": 0.95,
      "how": "<properties><db.url>jdbc:mysql://localhost:3306/mydb</db.url></properties>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a properties file with filtering enabled",
      "success_rate": 0.9,
      "how": "Create src/main/filters/db.properties with db.url=jdbc:mysql://localhost:3306/mydb and add <filters><filter>src/main/filters/db.properties</filter></filters>",
      "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-10-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}