GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Maven 4 stricter model validation rejects dependencies without <version> managed by BOM import · Issue #13190 · apache/maven

Maven 4 stricter model validation rejects dependencies without <version> managed by BOM import #13190

New issue
Copy link
New issue
Copy link
Closed
#13198
Closed
Maven 4 stricter model validation rejects dependencies without <version> managed by BOM import#13190
#13198
Copy link

Description

@gnodet
gnodet
opened on Sep 18, 2026
Issue body actions

Summary

Maven 4 raises [ERROR] 'dependencies.dependency.version' for ... is missing during model validation for dependencies whose version is managed via a BOM (<scope>import</scope> in <dependencyManagement>). Maven 3 accepted these without error.

This causes build failures for projects that correctly rely on BOM-managed versions and omit explicit <version> declarations in their <dependencies> section.

Reproduction

Affected projects (found in maven4-testing rc-6 run):

  • cassandra-java-driver — multiple org.apache.cassandra:* artifacts with BOM-managed versions
  • incubator-kie-optaplanner-quickstarts — similar pattern

Error (from mvnup / Maven 4 model validation)

[ERROR] 'dependencies.dependency.version' for groupId='org.apache.cassandra', artifactId='java-driver-test-infra', type='jar' is missing. @ line 42, column 5
[ERROR] 'dependencies.dependency.version' for groupId='org.apache.cassandra', artifactId='java-driver-query-builder', type='jar' is missing. @ line 47, column 5
[ERROR] 'dependencies.dependency.version' for groupId='org.apache.cassandra', artifactId='java-driver-mapper-processor', type='jar' is missing. @ line 52, column 5

Expected behavior

Dependencies whose version is managed by an imported BOM should not trigger validation errors. The BOM provides the version; the child POM correctly omits <version> per Maven best practice. Maven 3 accepted this pattern without error.

Notes

This may be a validation timing issue: the error occurs before the BOM import has been resolved and applied to dependencyManagement. If so, the fix would be to defer or suppress this validation until after BOM imports are resolved.

Alternatively, this could be intended stricter behavior — in which case the error message should clarify that the version must be provided in dependencyManagement (not necessarily inline), and the severity should be WARNING rather than ERROR for BOM-managed cases.

Maven version

Maven 4.0.0-rc-6 / maven-4.0.x branch

Activity

  1. gnodet
    added 11 commits that reference this issue on Sep 19, 2026

    Fix apache#13190: use MAVEN_2_0 validation level for BUILD_EFFECTIVE …

    This issue will close once commit 7a86fa3 is merged into the 'master' branch.
    7a86fa3

    Fix apache#13190: introduce isFilesystemRequest() to properly classif…

    This issue will close once commit 3925eed is merged into the 'master' branch.
    3925eed

    Fix apache#13190: use a shared BUILD_CONSUMER session in mvnup's buil…

    This issue will close once commit f2f2611 is merged into the 'master' branch.
    f2f2611

    Fix apache#13190: use a shared BUILD_CONSUMER session in mvnup's buil…

    This issue will close once commit 745cd58 is merged into the 'master' branch.
    745cd58

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit 81e7eb3 is merged into the 'master' branch.
    81e7eb3

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit 008826c is merged into the 'master' branch.
    008826c

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit 32d2bb2 is merged into the 'master' branch.
    32d2bb2

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit 460ae41 is merged into the 'master' branch.
    460ae41

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit c93393f is merged into the 'master' branch.
    c93393f

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit f60767d is merged into the 'master' branch.
    f60767d

    Fix #13190: pre-build full reactor once using BUILD_PROJECT, drop tem…

    This issue will close once commit 33148fc is merged into the 'master' branch.
    33148fc
  2. gnodet
    closed this as completedin #13198on Sep 19, 2026
  3. pull
    added a commit that references this issue on Sep 19, 2026

    Fix apache#13190: pre-build full reactor once using BUILD_PROJECT, dr…

    This issue will close once commit a98d8fa is merged into the 'master' branch.
    a98d8fa
  4. gnodet
    added a commit that references this issue on Sep 20, 2026

    fix: restore AbstractUpgradeStrategy reactor pre-build and related mv…

    319c96d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.