Commit 35f2adf1 authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

fetchMavenDeps: add missing pre/post runHooks

parent 830612d1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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