Установите JDK и Maven на WSL

sudo apt update
sudo apt install openjdk-14-jdk maven #installs both jdk and maven
Proud Panther