This is an automated email from the ASF dual-hosted git repository.

kturner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo-uno.git


The following commit(s) were added to refs/heads/main by this push:
     new bb89e15  updates how accumulo version is obtained (#304)
bb89e15 is described below

commit bb89e15da5bc2dc5174268dd09e4729803a2fead
Author: Keith Turner <[email protected]>
AuthorDate: Thu Oct 3 12:27:28 2024 -0400

    updates how accumulo version is obtained (#304)
    
    Uses maven to get accumulo version from pom rather than xmllint.  These
    changes will work with apache/accumulo#4930
---
 conf/uno.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/uno.conf b/conf/uno.conf
index ed67a87..f12e029 100644
--- a/conf/uno.conf
+++ b/conf/uno.conf
@@ -50,7 +50,7 @@ fi
 # in your workspace and don't want the detected version to change.
 if [[ -n "$ACCUMULO_REPO" ]]; then
   # Detect the version from the accumulo pom.xml in the workspace
-  ACCUMULO_VERSION=$(xmllint --shell "$ACCUMULO_REPO"/pom.xml <<<'xpath 
/*[local-name()="project"]/*[local-name()="version"]/text()' | grep content= | 
cut -f2 -d=)
+  ACCUMULO_VERSION=$(mvn -f "$ACCUMULO_REPO/pom.xml" help:evaluate 
-Dexpression=project.version -q -DforceStdout)
   export ACCUMULO_VERSION
   export ACCUMULO_TARBALL=accumulo-$ACCUMULO_VERSION-bin.tar.gz
 fi

Reply via email to