I use Windows Subsystem Linux(Ubuntu 18.04) in my Win10, and I install a Maven in it.
Besides, I install a maven in Win10 before.
Now when I used mvn compile
in WSL, it told me that maven compile fail.
I use which mvn
and find that it references to the Maven installed in Win10.
Besides, I run env
and find that Win10's Path is added to the WSL's Path.
I don't want to use any thing in Win10's Path when I use WSL, how should I do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…