Introduction
Apache Maven is a free and open source project management tool used for Java projects. You can easily manage a project's build, reporting, and documentation from a central piece of information using Apache Maven. Apache Maven provides a complete framework to automate the project's build infrastructure.In this tutorial, you will learn how to install Apache Maven on Ubuntu 16.04.
Prerequisites
- A newly deployed Vultr Ubuntu 16.04 server.
- A non-root user with sudo privileges created on your server.
Step 1: Update your server
First, update your system to the latest stable version by running the following command:sudo apt-get update -y
sudo apt-get upgrade -y
Step 2: Install Java
Apache Maven requires Java to be installed on your server. By default, Java is not available in Ubuntu's repository. Add the Oracle Java PPA to Apt with the following command:sudo add-apt-repository ppa:webupd8team/java
Next, update your Apt package database with the following command:sudo apt-get update -y
Install the latest stable version of Oracle Java 8.sudo apt-get install oracle-java8-installer
Verify the Java version by running the following command:java -version
Output:java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Step 3: Install Apache Maven
You can download the latest stable version of Apache Maven from its official website, otherwise you can download it directly with the following command:cd /opt/
wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
Once the download has completed, extract the downloaded archive.sudo tar -xvzf apache-maven-3.3.9-bin.tar.gz
Next, rename the extracted directory.sudo mv apache-maven-3.3.9 maven
Step 4: Setup environment variables
Next, you will need to setup the environment variables such asM2_HOME
, M2
, MAVEN_OPTS
, and PATH
. You can do this by creating a mavenenv.sh
file inside of the /etc/profile.d/
directory.sudo nano /etc/profile.d/mavenenv.sh
Add the following lines:export M2_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}
Save and close the file, update its permissions, then load the environment variables with the following command:sudo chmod +x /etc/profile.d/mavenenv.sh
sudo source /etc/profile.d/mavenenv.sh
Step 5: Verify installation
Once everything has been successfully configured, check the version of the Apache Maven.mvn --version
You should see the following output:Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:47+05:30)
Maven home: /opt/maven
Java version: 1.8.0_101, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-32-generic", arch: "amd64", family: "unix"
Congratulations! You have successfully installed Apache Maven on your Ubuntu 16.04 server.
The wheel is on a spindle, there may be} a|and there's a} small ball on the wheel. When the wheel is spun, the ball ricochets around and finally involves relaxation in one of many pockets. There are few instructional alternatives for studying how slot machines work in fashionable 메리트카지노 on line casino environments. The random behavior of slot machines is more advanced than most gamers are conscious. A place to start out|to begin} is enhancing a typical misunderstanding involving the concept of randomness.
BalasHapusIn the long run|the lengthy term}, the casino pays again ninety seven to ninety eight cents in prizes of every dollar that a gambler spends 메리트카지노 on these games. With slot machines, it's typical for a casino to only pay again 90 to 95 cents—and the casino retains the remaining. If this seems underhanded, keep in mind that|remember that|understand that} slot machines are one of the popular games at a casino; few individuals appear to mind. And should you contemplate that state lotteries have payout rates that are be} much nearer to 50 cents on the dollar, slot machines don’t look that dangerous. It's a standard belief that playing in} "scorching" machines will give you you with|provides you with} a better likelihood of profitable massive. But in accordance with Mark Good, a former CEO of an online playing enterprise and founding father of the new new} startup Bingo Sites Guru, this is all a myth.
BalasHapusWhen this 메리트카지노 occurs, the small print points} you could have} entered earlier will have to match the small print points} in your ID and proof of tackle. The verification course of is done to guard each the on line casino and gamers, and to stop any underage gamers from gambling on the site. Adding the correct date of birth to your account is subsequently very important as a result of|as a result of} ensuring you’re 18 years of age or older is one of the|is amongst the|is likely considered one of the} issues they examine very thoroughly. On net site}, before you log in, you may also|you can even} choose Banking in the primary menu. From here, you’ll in a position to|be succesful of|have the ability to} see the entire attainable payment methods you should use|you have to use}.
BalasHapus