diff --git a/pom.xml b/pom.xml index edb3920c3..8a862f352 100644 --- a/pom.xml +++ b/pom.xml @@ -741,6 +741,23 @@ + + org.codehaus.mojo + exec-maven-plugin + + + delete-mavens-links + process-test-resources + + exec + + false + + ${gatk.basedir}/public/src/main/scripts/shell/delete_maven_links.sh + + + + org.apache.maven.plugins maven-failsafe-plugin diff --git a/public/src/main/scripts/shell/delete_maven_links.sh b/public/src/main/scripts/shell/delete_maven_links.sh new file mode 100755 index 000000000..31fb06d86 --- /dev/null +++ b/public/src/main/scripts/shell/delete_maven_links.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Delete symlinks to testdata/qscripts created by maven. This is necessary +# in cases where "mvn clean" fails to delete these links itself and exits +# with an error. +# +# Should be run from the root directory of your git clone. +# + +find -L . -type l -name testdata -print0 | xargs -0 rm +find -L . -type l -name qscript -print0 | xargs -0 rm + +exit 0