You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/10/10 19:06:26 UTC
[maven-site] branch pom-current-version created (now ab8957e6)
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a change to branch pom-current-version
in repository https://gitbox.apache.org/repos/asf/maven-site.git
at ab8957e6 Use the latest Maven version in example
This branch includes the following new commits:
new ab8957e6 Use the latest Maven version in example
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[maven-site] 01/01: Use the latest Maven version in example
Posted by sj...@apache.org.
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 <s....@gmail.com>
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}