Eyal
Eyal

Reputation: 3513

Maven on Windows Subsystem For Linux

I'm trying to run maven on Windows Subsystem for Linux, and getting "cannot allocate memory" errors. However, free -m shows that I have plenty of memory available, and the same build on Cygwin succeeds.

Anyone have any tips for dealing with this? I'd prefer to change my settings.xml over my pom.xml's, but I'm open to almost anything.

Upvotes: 14

Views: 16374

Answers (1)

stdunbar
stdunbar

Reputation: 17535

Try to install maven by downloading it, not by doing an apt-get install maven. On my Ubuntu machines I've never been able to get the "apt" version to work right and have always resorted to downloading it directly from the Maven download instead. I tried that on my WSL and was able to build a pretty good sized JEE project with no issues.

Upvotes: 9

Related Questions