[hotfix] [build] Force delete corrupt jar files from cache

Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/3df78090
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/3df78090
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/3df78090

Branch: refs/heads/master
Commit: 3df7809027b75032aea0aadb53fd53fb13f90754
Parents: 22531a8
Author: Stephan Ewen <se...@apache.org>
Authored: Wed May 16 22:51:02 2018 +0200
Committer: Stephan Ewen <se...@apache.org>
Committed: Thu May 17 15:12:51 2018 +0200

----------------------------------------------------------------------
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/3df78090/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 4acdeb0..cad9c87 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -112,7 +112,7 @@ before_install:
    - "export PATH=$M2_HOME/bin:$PATH"
    - "export MAVEN_OPTS=\"-Dorg.slf4j.simpleLogger.showDateTime=true 
-Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS\""
 # just in case: clean up the .m2 home and remove invalid jar files
-   - 'test ! -d $HOME/.m2/repository/ || find $HOME/.m2/repository/ -name 
"*.jar" -exec sh -c ''if ! zip -T {} >/dev/null ; then echo "deleting invalid 
file: {}"; rm {} ; fi'' \;'
+   - 'test ! -d $HOME/.m2/repository/ || find $HOME/.m2/repository/ -name 
"*.jar" -exec sh -c ''if ! zip -T {} >/dev/null ; then echo "deleting invalid 
file: {}"; rm -f {} ; fi'' \;'
 
 # We run mvn and monitor its output. If there is no output for the specified 
number of seconds, we
 # print the stack traces of all running Java processes.

Reply via email to