Monday, June 5, 2017

Plan to compile web of needs with maven

Get Java Ready:

Download it:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install it:
https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html#BJFJJEFG
(I suppose this means extract and move it)

https://www.cyberciti.biz/faq/linux-unix-bsd-extract-targz-file/
tar -zxvf {file.tar.gz}

Dynamic Link it:
ln -s /usr/lib/jvm/jdk1.8.0_121/bin/javac javac


Edit: Or try not downloading from the browser page...since you are using a headless server:
(https://stackoverflow.com/questions/10268583/downloading-java-jdk-on-linux-via-wget-is-shown-license-page-instead)

Get Maven Ready:

Download it:
wget  https://archive.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.zip | sudo tee $(echo `md5sum apache-maven-3.3.3-bin.zip`)

Extract it:
unzip apache-maven-3.3.3-bin.zip

Move it:
cp -r apache-maven-3.3.3/ /usr/local/

/usr/bin/



Dynamic Link it:
cd /usr/bin
ln -s /usr/local/apache-maven-3.3.3/maven/bin/maven mvn

External (possibly unneeded) resources:
Install it:
http://maven.apache.org/install.html

Put together the web of needs with Maven:

Install git: sudo apt-get install git-all
(https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)



Clone the repository:
git clone https://github.com/researchstudio-sat/webofneeds

cd into the webofneeds/webofneeds directory

run: mvn install

If trouble is encountered see:
https://github.com/researchstudio-sat/webofneeds/blob/master/documentation/building-with-maven.md

and:
https://github.com/researchstudio-sat/webofneeds/blob/master/documentation/troubleshooting.md

=================================

Results without skipping tests (mvn install):
https://gist.github.com/bshambaugh/3114658a4ec029b45e77d033b86c7ef4

Results when skipping tests (mvn install -DskipTests -DskipITs):
https://gist.github.com/bshambaugh/bdd5d4f70afde3abc2ea513c9fc2e69e

No comments:

Post a Comment