From 90074242d145350d6b1d96747be8409f7fc385aa Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Fri, 16 Apr 2021 18:34:40 +0200 Subject: [PATCH] Set PATH when calling which in bootstrap mode --- xmvn.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmvn.spec b/xmvn.spec index 7414b03..e76aad0 100644 --- a/xmvn.spec +++ b/xmvn.spec @@ -221,7 +221,7 @@ find -name ResolverIntegrationTest.java -delete %pom_remove_plugin :maven-jar-plugin xmvn-tools # get mavenVersion that is expected -maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..) +maven_home=$(realpath $(dirname $(realpath $(%{?jpb_env} which mvn)))/..) mver=$(sed -n '//{s/.*>\(.*\)<.*/\1/;p}' \ xmvn-parent/pom.xml) mkdir -p target/dependency/ @@ -245,7 +245,7 @@ rm -f %{name}-${version}*/bin/* %mvn_install version=4.0.0-SNAPSHOT -maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..) +maven_home=$(realpath $(dirname $(realpath $(%{?jpb_env} which mvn)))/..) install -d -m 755 %{buildroot}%{_datadir}/%{name} cp -r%{?mbi:L} %{name}-${version}*/* %{buildroot}%{_datadir}/%{name}/