Ras Zion
Ras Zion

Reputation: 51

MVN Permission denied on Mac

When I try to run test locally I get the error: FAIL: Compilation failed. Then it says "/bin/sh: /Users/local/.config/tmc/apache-maven-3.5.4/bin/mvn: Permission denied"

I am able to submit and run the exercises. How can I rectify this issue? Also if wondering, I am using a MacBook Pro.

Upvotes: 3

Views: 17221

Answers (3)

kousar kudikangal
kousar kudikangal

Reputation: 31

Try if doing a chmod +x mvnw and then committing your change fixes the problem.

Upvotes: 3

Ras Zion
Ras Zion

Reputation: 51

Found the solution. type this into your terminal: MAKE SURE TO PUT YOUR USERNAME

chmod +x /Users/INSERT USERNAME/.config/tmc/apache-maven-3.5.4/bin/mvn

Upvotes: 2

Looks like you don't have permission to access it.

Check this answer out: maven: bash mvn permission denied

It shows you how you can change the permission of the file.

Upvotes: 0

Related Questions