Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
Apache Maven 4.0.0-beta-5
Description
First observations, will elaborate as we discover more.
When using modelVersion 4.1.0, it is possible to declare dependencies without the version element in two scenarios:
- dependencies that are managed through a BOM.
- dependencies that live in the same aggregator project.
When you mix dependencies with a version element and dependencies without a version element, the ones with a version element will not be present in the model.
- Only version-less dependencies: works.
- Only versioned dependencies: works.
- Version-less and versioned dependencies mixed: versioned dependencies can disappear, depending on how the version of the version-less dependency would be calculated. It would only disappear when it was calculated from the aggregator project.
This only breaks in modelVersion 4.1.0. Working on an IT that demonstrates this and a fix.