This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch pom-current-version in repository https://gitbox.apache.org/repos/asf/maven-site.git
commit ab8957e639bebad4b4d296732e7381166a439eb7 Author: Slawomir Jaranowski <[email protected]> AuthorDate: Mon Oct 10 21:00:52 2022 +0200 Use the latest Maven version in example --- content/apt/{pom.apt => pom.apt.vm} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/apt/pom.apt b/content/apt/pom.apt.vm similarity index 99% rename from content/apt/pom.apt rename to content/apt/pom.apt.vm index 023e618f..8c06959c 100644 --- a/content/apt/pom.apt +++ b/content/apt/pom.apt.vm @@ -550,19 +550,19 @@ mvn install:install-file -Dfile=non-maven-proj.jar -DgroupId=some.group -Dartifa The maven distribution includes a tool to check version order. It was used to produce the examples in the previous paragraphs. Feel free to run it yourself when in doubt. You can run it like this: ---------------------------------------- -java -jar ${MAVEN_HOME}/lib/maven-artifact-3.3.9.jar [versions...] +java -jar ${MAVEN_HOME}/lib/maven-artifact-${currentStableVersion}.jar [versions...] ---------------------------------------- example: ---------------------------------------- -$ java -jar ./lib/maven-artifact-3.3.9.jar 1 2 1.1 -Display parameters as parsed by Maven (in canonical form) and comparison result: -1. 1 == 1 +$ java -jar ./lib/maven-artifact-${currentStableVersion}.jar 1 2 1.1 +Display parameters as parsed by Maven (in canonical form and as a list of tokens) and comparison result: +1. 1 -> 1; tokens: [1] 1 < 2 -2. 2 == 2 +2. 2 -> 2; tokens: [2] 2 > 1.1 -3. 1.1 == 1.1 +3. 1.1 -> 1.1; tokens: [1, 1] ---------------------------------------- *** {Exclusions}
