apache / apache/maven-build-cache-extension
Built in skip properties [skipAddThirdParty and skipDownloadLicenses] of the **license-maven-plugin** are generating missmatch in the effective pom
- Dominant language
- Java
- Stars
- 163
- Forks
- 77
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 4
Description
### Affected version
1.2.1
### Bug description
Built in skip properties [skipAddThirdParty and skipDownloadLicenses] of the **license-maven-plugin** are generating mismatch in the effective pom which is triggering module rebuild, even if reconciliation is configured to ignore these flags only when set to true.
See relevant part of the xml samples.
buildinfo-baseline:
third-party-license-info:add-third-party:initialize:license-maven-plugin:org.codehaus.mojo
org.codehaus.mojo.license.AddThirdPartyMojo
true
null
...
**false**
true
THIRD-PARTY.txt
false
true
false
...
third-party-license-info:download-licenses:initialize:license-maven-plugin:org.codehaus.mojo
org.codehaus.mojo.license.DownloadLicensesMojo
...
**false**
5000
true
false
false
false
false
true
buildinfo:
third-party-license-info:add-third-party:initialize:license-maven-plugin:org.codehaus.mojo
org.codehaus.mojo.license.AddThirdPartyMojo
true
null
...
**true**
true
THIRD-PARTY.txt
false
true
false
...
third-party-license-info:download-licenses:initialize:license-maven-plugin:org.codehaus.mojo
org.codehaus.mojo.license.DownloadLicensesMojo
...
**true**
5000
true
false
false
false
false
true
And the effective pom generated:
effective-pom-baseline:
org.codehaus.mojo
license-maven-plugin
2.4.0
third-party-license-info
initialize
add-third-party
download-licenses
**false**
**false**
warn
...
effective-pom:
org.codehaus.mojo
license-maven-plugin
2.4.0
third-party-license-info
initialize
add-third-party
download-licenses
**true**
**true**
warn
...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the mismatch using the reported license-maven-plugin configuration and compare the buildinfo-baseline, buildinfo, effective-pom-baseline, and effective-pom samples. Trace how skipAddThirdParty and skipDownloadLicenses are reconciled, and consider the issue resolved when ignored true values no longer cause a module rebuild or effective-POM mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100