# 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

- **ID:** `java/maven-license-check-failure`
- **Domain:** java
- **Category:** build_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A dependency's license is not in the allowed list configured in the license-maven-plugin.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 8+ | active | — | — |

## Workarounds

1. **Add the license to the allowed list in pom.xml** (90% success)
   ```
   <plugin><groupId>org.codehaus.mojo</groupId><artifactId>license-maven-plugin</artifactId><configuration><allowedLicenses><license><name>Apache 2.0</name></license></allowedLicenses></configuration></plugin>
   ```
2. **Exclude the dependency with an incompatible license and find an alternative** (85% success)
   ```
   <dependency><groupId>com.example</groupId><artifactId>lib</artifactId><exclusions><exclusion><groupId>problematic-group</groupId><artifactId>problematic-artifact</artifactId></exclusion></exclusions></dependency>
   ```

## Dead Ends

- **Removing the dependency without checking if it's needed** — The code may rely on that dependency, causing compilation errors. (80% fail)
- **Ignoring the license check by skipping the plugin** — The project may have legal requirements to enforce license compliance. (70% fail)
