Install Maven on WSL
more_vert
Maven is a commonly used tool to build Java based projects though it can also be used to build other types of projects.
This guide provides steps to install Maven on Ubuntu WSL (Windows Subsystem for Linux) distro on Windows.
Open WSL terminal
Open WSL terminal on Windows.
wsl # Or using the following command if Ubuntu is not the default distro wsl -d Ubuntu-18.04
Update package index
In the opened window, run the following command:
sudo apt update
Install Maven
Run the following command to install Maven:
sudo apt install maven
Type Y to continue when asked.
Verify Maven
Type the following command to verify Maven version:
mvn --version
The output looks something like this:
Apache Maven 3.6.0 Maven home: /usr/share/maven Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-19041-microsoft", arch: "amd64", family: "unix"
Maven is now installed on your Ubuntu WSL distro.
copyright
This page is subject to Site terms.
comment Comments
No comments yet.
Log in with external accounts
warning Please login first to view stats information.
article
Connect to Hive via HiveServer2 JDBC Driver
article
AttributeError: type object 'java.sql.Types' has no attribute '__javaclass__'
article
MySQL: The server time zone value 'AEDT' is unrecognized or represents more than one time zone
article
Java Kerberos Authentication Configuration Sample & SQL Server Connection Practice
article
java.lang.NoSuchMethodError: PoolConfig.setMinEvictableIdleTime
Read more (16)