This is an automated email from the ASF dual-hosted git repository.
maruilei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/auron.git
The following commit(s) were added to refs/heads/master by this push:
new 76ea6c0f [AURON #1434] Use Maven-native version extraction instead of
xmllint for better portability (#1435)
76ea6c0f is described below
commit 76ea6c0f98128ca794d8eb9bedf0e56c2d1dd419
Author: Ruilei Ma <[email protected]>
AuthorDate: Fri Oct 17 10:14:26 2025 +0800
[AURON #1434] Use Maven-native version extraction instead of xmllint for
better portability (#1435)
---
auron-build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/auron-build.sh b/auron-build.sh
index 80555129..1bdc9e8a 100755
--- a/auron-build.sh
+++ b/auron-build.sh
@@ -297,7 +297,7 @@
BUILD_INFO_FILE="common/src/main/resources/auron-build-info.properties"
mkdir -p "$(dirname "$BUILD_INFO_FILE")"
JAVA_VERSION=$(java -version 2>&1 | head -n 1 | awk '{print $3}' | tr -d '"')
-PROJECT_VERSION=$(xmllint --xpath
"/*[local-name()='project']/*[local-name()='properties']/*[local-name()='project.version']/text()"
pom.xml)
+PROJECT_VERSION=$(./build/mvn help:evaluate -N -Dexpression=project.version
-Pspark-${SPARK_VER} -q -DforceStdout 2>/dev/null)
RUST_VERSION=$(rustc --version | awk '{print $2}')
{