![]() ![]() You should now have successfully installed Apache Maven on your Debian 9 server.įor more tutorials, read our article and find out how to install Maven on Ubuntu.įor more information, please see the offical maven documentation. The system should display your Apache Maven version, the location of Maven Home, and your Java version. Then load the file by entering: Source /etc/profile.d/maven.sh Step 4: Verify Apache Maven Installation Next, change permissions by entering the following: sudo chmod +x /etc/profile.d/maven.shĤ. ![]() # MAVEN_HOME for Maven 1 - M2_HOME for Maven 2Įxport JAVA_HOME=/usr/lib/jvm/default-javaģ. Enter the following lines: # Apache Maven Environmental Variables Create the file and open it for editing: sudo nano /etc/profile.d/maven.shĢ. This file is located at /etc/profile.d/maven.sh.ġ. Like most Linux software, Apache Maven uses a configuration file. Sudo ln –s /opt/apache-maven-3.6.0 /opt/maven This helps make typing the location easier for updates and other tasks: Note: If you’re using a different version of Maven, change 3.6.0 to the version you downloaded.įinally, create a symbolic link to the software location. The first line should return openjdk version “1.8.0_181” or higher. Confirm the Java installation and version by entering: java –version In a terminal window, enter the following: sudo apt install default-jdkĢ. For compatibility, make sure you are using version 1.7 or higher.ġ. This tutorial uses the open-source OpenJDK software package. Verify the installation by checking the Maven version: mvn –version Option 2: Install Latest Version of Apache Maven Step 1: Install Java Development KitĪpache Maven requires the Java Development Kit (JDK). ![]() Install Apache Maven by entering the following: sudo apt install mavenģ. As with most software installations, start by updating the repository index: sudo apt updateĢ. 7.) Jika sudah selesai, kita beralih ke komputer client. jika ada pertanyaan y/n, tekan tombol y kemudian enter. ![]() Install apache2 dengan mengetikkan perintah apt-get install apacahe2. Option 1: Install Apache Maven on Debian with Yumġ. Sebelumnya pastikan terlebih dahulu repository sudah mengarah ke DVD binary 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |