Yuta HIGUCHI | d62fb87 | 2014-01-02 10:40:32 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Pavlin Radoslavov | 4c7a077 | 2014-01-04 08:52:57 -0800 | [diff] [blame] | 3 | # |
| 4 | # A helper script to download all the dependencies beforehand, rather than |
| 5 | # Maven lazily downloading them when they're needed. |
| 6 | # |
| 7 | |
Yuta HIGUCHI | d62fb87 | 2014-01-02 10:40:32 -0800 | [diff] [blame] | 8 | if [ -z "${MVN}" ]; then |
| 9 | MVN="mvn" |
| 10 | fi |
| 11 | |
| 12 | # download package dependencies |
| 13 | ${MVN} -T 1C dependency:go-offline |
| 14 | |
| 15 | # run goals to download required plugins |
| 16 | ${MVN} -T 1C checkstyle:checkstyle |
| 17 | ${MVN} -q -T 1C clean test -Dtest=DoNotTest -DfailIfNoTests=false > /dev/null |
| 18 | ${MVN} -T 1C compile |