You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/11/30 19:03:00 UTC

[jira] [Created] (MNGSITE-501) Clarify JDK activation element

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)