Richten Sie JDK und Maven auf WSL ein

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