Last active
March 21, 2018 17:20
-
-
Save duhaime/e38484b75c79738b793956af659f3e43 to your computer and use it in GitHub Desktop.
Installing Maven and CouchDB-Lucene on Ubuntu 14.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # get couchdb-lucene | |
| git clone https://github.com/rnewson/couchdb-lucene | |
| # update java | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer -y | |
| # check java version == 1.8 | |
| java -version | |
| # use default config for java | |
| sudo apt-get install oracle-java8-set-default | |
| # install maven | |
| sudo apt-get install maven -y | |
| # remove legacy jdk | |
| sudo apt-get purge openjdk-\* -y | |
| # get new jdk | |
| sudo add-apt-repository ppa:openjdk-r/ppa | |
| sudo apt-get update | |
| sudo apt-get install openjdk-8-jdk | |
| sudo update-alternatives --config java | |
| sudo update-alternatives --config javac | |
| # set JAVA_HOME | |
| vim ~/.bashrc | |
| -> `export JAVA_HOME="/usr/lib/jvm/java-8-oracle" | |
| # build the source | |
| mvn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment