Skip to content

maven: fix the version of Maven plugins - #3951

Merged
shroffk merged 2 commits into
ControlSystemStudio:masterfrom
minijackson:fixed-maven-plugin-versions
Oct 14, 2026
Merged

shroffk merged 2 commits into
ControlSystemStudio:masterfrom
minijackson:fixed-maven-plugin-versions

Conversation

@minijackson

Copy link
Copy Markdown
Contributor

This PR proposes using fixed versions (as in "fixed in time") of Maven plugins, like I proposed in ChannelFinderService recently.

This PR fixes the version of used Maven plugins, and sets up the maven-enforcer plugin so that they are always fixed in the future.

Without fixed versions, builtin Maven plugins versions are resolved depending on the used Maven version, and if I recall correctly other plugins get their latest version (including SNAPSHOT releases), making the build environment not reproducible depending on the setup.

Checklist

  • Testing:

    • The feature has automated tests
    • Tests were run
    • If not, explain how you tested your changes
  • Documentation:

    • The feature is documented
    • The documentation is up to date
    • Release notes:
      • Added an entry if the change is breaking or significant
      • Added an entry when adding a new feature

This ensures the reproducibility of the build environment,
instead of using versions that depend on the used Maven version.
Maven plugins without a specified version is allowed by default.
This changes adds the maven enforcer plugin which disallows that
behaviour, so that the build environment is reproducible.
@sonarqubecloud

Copy link
Copy Markdown

@shroffk
shroffk self-requested a review October 14, 2026 13:27
@shroffk
shroffk merged commit 439cb51 into ControlSystemStudio:master Oct 14, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants