Is there a way to configure Windows Maven and WSL Maven to use the same .m2/repository and settings.xml?
In my .bashrc from WSL I added the M2_HOME to use the same installation that Windows 10 use:
.bashrc:
export M2_HOME=/mnt/c/development/maven
Windows PATH:
C:\development\maven
But when I execute mvn clean install on Windows Bash, a .m2 folder is created in ~/.m2 (WSL folder system).