{
  "id": "java/maven-license-check-failure",
  "signature": "Failed to execute goal org.codehaus.mojo:license-maven-plugin:2.0.0:check (default) on project my-app: Some dependencies have incompatible licenses. See /path/to/license-summary.html",
  "signature_zh": "在项目 my-app 上执行目标 org.codehaus.mojo:license-maven-plugin:2.0.0:check (default) 失败：某些依赖具有不兼容的许可证。请参阅 /path/to/license-summary.html。",
  "regex": "Failed\\ to\\ execute\\ goal\\ org\\.codehaus\\.mojo:license\\-maven\\-plugin:2\\.0\\.0:check\\ \\(default\\)\\ on\\ project\\ my\\-app:\\ Some\\ dependencies\\ have\\ incompatible\\ licenses\\.\\ See\\ /path/to/license\\-summary\\.html",
  "domain": "java",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "A dependency's license is not in the allowed list configured in the license-maven-plugin.",
  "root_cause_type": "generic",
  "root_cause_zh": "依赖的许可证不在 license-maven-plugin 配置的允许列表中。",
  "versions": [
    {
      "version": "8+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing the dependency without checking if it's needed",
      "why_fails": "The code may rely on that dependency, causing compilation errors.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the license check by skipping the plugin",
      "why_fails": "The project may have legal requirements to enforce license compliance.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the license to the allowed list in pom.xml",
      "success_rate": 0.9,
      "how": "<plugin><groupId>org.codehaus.mojo</groupId><artifactId>license-maven-plugin</artifactId><configuration><allowedLicenses><license><name>Apache 2.0</name></license></allowedLicenses></configuration></plugin>",
      "condition": "",
      "sources": []
    },
    {
      "action": "Exclude the dependency with an incompatible license and find an alternative",
      "success_rate": 0.85,
      "how": "<dependency><groupId>com.example</groupId><artifactId>lib</artifactId><exclusions><exclusion><groupId>problematic-group</groupId><artifactId>problematic-artifact</artifactId></exclusion></exclusions></dependency>",
      "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-09-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}