Skip to content

Update dependency org.codehaus.mojo:license-maven-plugin to v2.9.0 - #6522

Merged
vdiez merged 1 commit into
masterfrom
renovate/mojohauslicense-maven-plugin
Nov 16, 2026
Merged

vdiez merged 1 commit into
masterfrom
renovate/mojohauslicense-maven-plugin

Conversation

@renovate

@renovate renovate Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
org.codehaus.mojo:license-maven-plugin (source) 2.8.0 → 2.9.0 age confidence

Release Notes

mojohaus/license-maven-plugin (org.codehaus.mojo:license-maven-plugin)

v2.9.0

Compare Source

License Maven Plugin 2.9.0 caches downloaded license texts between builds, adds name-based URL overrides and stricter download checks, and fixes a long list of reported bugs in headers, the third-party report and dependency resolution. The requirements are unchanged: Maven 3.9.0 or later, Java 8.

⚠️ Changes to check when upgrading

  • -Dlicense.licenceFile is now -Dlicense.licenseFile for update-project-license and check-project-license. The misspelled property still works for now, with a deprecation warning (#​797, #​479 by @​zdenek-jonas).
  • verbose is deprecated. Its messages are logged at debug level, so use -X instead (#​810, #​340 by @​digulla).

✨ Highlights

  • License texts are cached between builds in ${settings.localRepository}/.cache/mojohaus-license-maven-plugin and reused for 30 days, then revalidated with ETag/Last-Modified. CI builds that restore the local repository stop downloading the same license pages on every run (#​780).
  • licenseNameUrlOverrides downloads a license text from a URL you choose, matched by a regular expression on the license name, so variants of one license share a clean text (#​718 by @​MrBanana05).
  • Stricter downloads. failOnForbidden fails the build when a dependency has a license listed in forbiddenLicenses (#​792, #​323 by @​ppalaga), and failOnMissingLicenseFile fails it when a license text could not be downloaded (#​791). HTML pages are no longer accepted as license texts (#​790).
  • Dependency POMs are read from the repositories of the POMs that lead to them, so licenses of dependencies hosted outside the project's repositories are no longer "Unknown" (#​807, #​752 by @​lrozenblyum).
  • The third-party report links each license to its URL (#​799, #​212 by @​digulla).
  • Proxy: every download of the plugin now uses the active Maven proxy (#​804, #​434 by @​lexx9999).
  • File headers: the FreeMarker directive stays first when a header is added (#​806, #​412 by @​smokemaker). Blank lines of the license are kept when an existing header is read (#​808, #​347 by @​heapifyman). The package statement is no longer matched inside comments (#​803, #​562 by @​onacit). Files fall back to LF when no file sets the end of line (#​800, #​511 by @​jacek-lewandowski).
  • Other fixes: relative file: URLs of license texts resolve against the base directory (#​809, #​428 and #​431 by @​duracotton). The third-party file is added to the resources whatever its name (#​796, #​124 by @​bnese), and the template can read the project (#​801, #​365 by @​ST-DDT). A missing classpath license repository fails with a clear error (#​802, #​384 by @​HenningL), and unknown missing-file entries are logged at debug level when the file is remote (#​798, #​201 by @​TorstenKruse). The artifact cache no longer leaks between helper instances (#​793, #​375 by @​cwholmes), and the dead EUPL 1.1 header URL is replaced (#​795, #​443 by @​dodinh).
  • overrideFile is no longer deprecated. It is the choice for a file inside the project, and overrideUrl stays for remote and classpath: locations (#​794, #​416 by @​bogdanb).
  • Documentation moved to Markdown (#​783), and says that includes and excludes are relative to the roots (#​805).

🚀 New features and improvements

🐛 Bug Fixes

📝 Documentation updates

👻 Maintenance

🔧 Build

Thanks to @​MrBanana05, @​slachiewicz and Bjarne Cornelius.

Full changelog


Configuration

📅 Schedule: (in timezone CET)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Nov 15, 2026
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Renovate Jira issue ID: SONARJAVA-7349

@gitar-bot

gitar-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Upgrading the license Maven plugin changes build-time license checks and downloads, which could alter generated headers or fail builds under stricter validation.

Bumps the org.codehaus.mojo:license-maven-plugin dependency from 2.8.0 to 2.9.0, a Renovate update with no open findings. No issues found.

Verification Rules 2/2 met PRs 2 inspected

Functional validation No results

Rules 2 passed 2 not applicable

✅ Internal artifact registries
✅ Repository license compliance

Broader impact PRs 2 inspected
Cross-PR 2 PRs inspected 0 open impacts

PR 6520: Update dependency org.codehaus.mojo:exec-maven-plugin to v3.7.0 Inspected
PR 678: Update dependency org.codehaus.mojo:license-maven-plugin to v2.9.0 Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@datadog-sonarsource

This comment has been minimized.

@sonarqube-next

Copy link
Copy Markdown
Contributor

@vdiez
vdiez merged commit 3890ffd into master Nov 16, 2026
33 of 34 checks passed
@vdiez
vdiez deleted the renovate/mojohauslicense-maven-plugin branch November 16, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant