goutamadwant opened a new pull request, #12767: URL: https://github.com/apache/maven/pull/12767
Addresses #11694. Support Maven version ranges through the existing `maven.version` profile activation property on `master`, without adding a POM model element. The implementation recognizes range syntax only for `maven.version` and evaluates it with the existing `ModelVersionParser`. Exact matching remains unchanged for ordinary values and all other properties. Bounded, open-ended, and negated ranges are supported; malformed ranges fail closed with a model warning. Tests cover the suggested `[4.0.0,)` form, prerelease and boundary behavior, negation, malformed input, unchanged literal matching, and activation through the model builder. This implements the `master` path. Please consider a backport to `maven-4.0.x`. Maven 3 requires a separate `maven-3.10.x` implementation using its legacy model builder and version APIs. Tests: - `mvn -pl impl/maven-impl verify` (560 tests passed, 4 skipped) - Full reactor and all 1,051 Core ITs executed - Targeted Java 21 rerun of the affected IT classes (4 tests passed) - [x] Your pull request should address just one issue, without pulling in other changes. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Each commit in the pull request should have a meaningful subject line and body. - [x] Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. - [x] Run `mvn verify` to make sure basic checks pass. - [ ] You have run the Core IT successfully. See the test details above. - [x] I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004. - [ ] In any other case, please file an Apache Individual Contributor License Agreement. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
