Konrad Windszus created MNGSITE-501:
---------------------------------------
Summary: Clarify JDK activation element
Key: MNGSITE-501
URL: https://issues.apache.org/jira/browse/MNGSITE-501
Project: Maven Project Web Site
Issue Type: Improvement
Reporter: Konrad Windszus
Both in [https://maven.apache.org/pom.html#Activation] and
[https://maven.apache.org/guides/introduction/introduction-to-profiles.html#details-on-profile-activation]
the {{jdk}} element needs clarification that not all values are interpreted as
ranges (in contrast to what the referenced version range specification from
enforcer maven plugin in
[https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html] says).
Actually there are three different kind of values supported:
# Version ranges (if the value starts with either "[" or "(")
# A negated prefix (if the value starts with "!"
# A (non-negated) prefix for all other cases
This can be seen in
https://github.com/apache/maven/blob/001eef8452b38110a2557446aa81b8fb1ff35f92/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/JdkVersionProfileActivator.java#L69
--
This message was sent by Atlassian Jira
(v8.20.10#820010)