Skip to content

Commit

Permalink
updates how accumulo version is obtained (#304)
Browse files Browse the repository at this point in the history
Uses maven to get accumulo version from pom rather than xmllint.  These
changes will work with apache/accumulo#4930
  • Loading branch information
keith-turner authored Oct 3, 2024
1 parent 3ca2b6c commit bb89e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/uno.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb89e15

Please sign in to comment.