Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c40f837

Browse files
committed
Revert "Disabling maven wagon-http"
This reverts commit 110bfa7
1 parent 8a23068 commit c40f837

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

.travis/maven_cfg.sh

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,17 @@
22
set -ev
33
cp .travis/settings.xml $MAVEN_CFG/settings.xml
44

5-
############################################
6-
# disabling all the below to check if it's still needed with maven 3.5.2 on Travis
7-
############################################
8-
#cd $(dirname $(readlink -f $0))
9-
#
10-
## Download wagon-http recommended by Oracle.
11-
## On maven latest version this is not needed, but travis doesn't have it.
12-
#if [ ! -f $CACHE_DIR/wagon-http-2.8-shaded.jar ]; then
13-
# curl -L -O "http://central.maven.org/maven2/org/apache/maven/wagon/wagon-http/2.8/wagon-http-2.8-shaded.jar"
14-
# mv wagon-http-2.8-shaded.jar $CACHE_DIR/
15-
# sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
16-
#else
17-
# echo "Using cached wagon-http..."
18-
# sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
19-
#fi
20-
#
21-
#mvn dependency:copy-dependencies -DoutputDirectory=../utPLSQL-cli/lib
5+
cd $(dirname $(readlink -f $0))
6+
7+
# Download wagon-http recommended by Oracle.
8+
# On maven latest version this is not needed, but travis doesn't have it.
9+
if [ ! -f $CACHE_DIR/wagon-http-2.8-shaded.jar ]; then
10+
curl -L -O "http://central.maven.org/maven2/org/apache/maven/wagon/wagon-http/2.8/wagon-http-2.8-shaded.jar"
11+
mv wagon-http-2.8-shaded.jar $CACHE_DIR/
12+
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
13+
else
14+
echo "Using cached wagon-http..."
15+
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
16+
fi
17+
18+
mvn dependency:copy-dependencies -DoutputDirectory=../utPLSQL-cli/lib

0 commit comments

Comments
 (0)