fetchMavenDeps: add missing pre/post runHooks

This commit is contained in:
Bjørn Forsman
2023-08-28 08:14:01 +02:00
parent 830612d109
commit 35f2adf1ca
@@ -26,16 +26,24 @@ let
];
buildPhase = ''
runHook preBuild
mvn package -Dmaven.repo.local=$out/.m2 ${mvnParameters}
runHook postBuild
'';
# keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside
installPhase = ''
runHook preInstall
find $out -type f \( \
-name \*.lastUpdated \
-o -name resolver-status.properties \
-o -name _remote.repositories \) \
-delete
runHook postInstall
'';
# don't do any fixup