-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
travis-install-java-dependencies.sh
executable file
·26 lines (19 loc) · 1.36 KB
/
travis-install-java-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# pwd = /home/travis/build/thospfuller/rcoboldi
mkdir $HOME/temp
git clone https://bitbucket.org/CoherentLogic/coherent-logic-enterprise-data-adapter.git $HOME/temp/eda
git clone https://bitbucket.org/CoherentLogic/jdataframe.git $HOME/temp/jdataframe
#
# The TLSv1.2 is here to fix a 'peer not authenticated' error which causes the build to fail
# when attempting to download dependencies from FuseSource.
#
cd $HOME/temp/eda/ && mvn clean install -DskipTests=true -U -Dhttps.protocols=TLSv1.2
cd $HOME/temp/jdataframe/ && mvn clean install -DskipTests=true -U
cd $HOME
wget https://sourceforge.net/projects/coboltocsv/files/CobolToCsv/Version_0.90/Cobol2Csv_0.90.zip -O $HOME/temp/Cobol2Csv_0.90.zip
wget https://sourceforge.net/projects/jrecord/files/jrecord/Version_0.90.3/JRecord_Version_0.90.3.zip -O $HOME/temp/JRecord_Version_0.90.3.zip
unzip $HOME/temp/Cobol2Csv_0.90.zip -d $HOME/temp/
unzip $HOME/temp/JRecord_Version_0.90.3.zip -d $HOME/temp/jrecord/
mvn install:install-file -Dfile=$HOME/temp/jrecord/lib/JRecord.jar -DgroupId=net.sf -DartifactId=jrecord -Dversion=0.90.2 -Dpackaging=jar
mvn install:install-file -Dfile=$HOME/temp/jrecord/lib/cb2xml.jar -DgroupId=net.sf -DartifactId=cb2xml -Dversion=0.90.2 -Dpackaging=jar
mvn install:install-file -Dfile=$HOME/temp/Cobol2Csv/lib/Cobol2Csv.jar -DgroupId=net.sf -DartifactId=cb2csv -Dversion=0.90 -Dpackaging=jar