Skip to content

Commit f6a2956

Browse files
committed
nix: Also provide the jar without all the bundled depedencies
This is useful when trying to do `mvn deploy:deploy-file` or similar. Also sometimes the wrong `pom.xml` inside of the jar is chosen making the deployment invalid.
1 parent 7a73759 commit f6a2956

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ pkgs.stdenvNoCC.mkDerivation rec {
105105
installPhase = ''
106106
runHook preInstall
107107
108+
install -Dm644 "target/diffdetective-${version}.jar" "$out/share/java/DiffDetective.jar"
108109
local jar="$out/share/java/DiffDetective/DiffDetective.jar"
109110
install -Dm644 "target/diffdetective-${version}-jar-with-dependencies.jar" "$jar"
110111
makeWrapper "${jre-minimal}/bin/java" "$out/bin/DiffDetective" --add-flags "-cp \"$jar\"" \

0 commit comments

Comments
 (0)