javaPackages.mavenfod: use mvnParameters in buildPhase

This commit is contained in:
Johannes Schleifenbaum 2022-03-28 12:13:09 +02:00
parent 6816f87866
commit 4c766274c5
No known key found for this signature in database
GPG key ID: 059093B1A278BCD0

View file

@ -49,7 +49,7 @@ stdenv.mkDerivation (rec {
runHook preBuild
mvnDeps=$(cp -dpR ${fetchedMavenDeps}/.m2 ./ && chmod +w -R .m2 && pwd)
mvn package --offline "-Dmaven.repo.local=$mvnDeps/.m2" -P desktop,all-platforms
mvn package --offline "-Dmaven.repo.local=$mvnDeps/.m2" ${mvnParameters}
runHook postBuild
'';