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

Skip to content

Commit 2e6f964

Browse files
pesseSamuel Nitsche
authored andcommitted
Install Maven wagon for oracle repository
1 parent b388dd4 commit 2e6f964

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ install:
7979
#- unzip utPLSQL.zip
8080
- unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli
8181
- cp .travis/settings.xml $MAVEN_CFG/settings.xml
82+
# Install maven wagon
83+
- bash .travis/maven_cfg.sh
8284
- mvn dependency:copy-dependencies -DoutputDirectory=utPLSQL-cli/lib
8385
- pip install mkdocs
8486
- bash .travis/install_sqlcl.sh

.travis/maven_cfg.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
set -ev
3+
cd $(dirname $(readlink -f $0))
4+
5+
# Download wagon-http recommended by Oracle.
6+
# On maven latest version this is not needed, but travis doesn't have it.
7+
if [ ! -f $CACHE_DIR/wagon-http-2.8-shaded.jar ]; then
8+
curl -L -O "http://central.maven.org/maven2/org/apache/maven/wagon/wagon-http/2.8/wagon-http-2.8-shaded.jar"
9+
mv wagon-http-2.8-shaded.jar $CACHE_DIR/
10+
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
11+
else
12+
echo "Using cached wagon-http..."
13+
sudo cp $CACHE_DIR/wagon-http-2.8-shaded.jar $MAVEN_HOME/lib/ext/
14+
fi

0 commit comments

Comments
 (0)