0

So I need to download all dependencies from a pom.xml to one folder. That works with that command:

mvn -f pom.xml dependency:copy-dependencies -DoutputDirectory=libs

It works fine when I run this with the root user from putty, but when I run this with php exec: exec("mvn -f pom.xml dependency:copy-dependencies -DoutputDirectory=test"); it doesn't work and I'm getting this Error: Could not create local repository at /var/www/.m2/repository (LocalRepositoryNotAccessibleException)

I'm pretty sure this has something to do with permissions because of the www-data user, but I can't figure out what to do (already gave the php file and folder 777 permissions)

0 Answers0