maven: bash mvn permission denied

后端 未结 3 1049
长发绾君心
长发绾君心 2020-12-31 21:12

This is what I\'m seeing:

mvn
bash: /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn: Permission denied

my bash file:

if          


        
相关标签:
3条回答
  • 2020-12-31 21:25

    sudo chmod 777 <mvn location> fixed it. Man I suck at linux :P

    0 讨论(0)
  • 2020-12-31 21:26

    Your permission shows that you can't execute that file. Modify permissions for that file. If you want all the users in the machine should be able to execute that file, then do this :

    chmod a+x /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
    
    0 讨论(0)
  • 2020-12-31 21:27

    /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn does not have the execute permission. This should be able to fix it:

    chmod a+x /usr/local/apache-maven/apache-maven-3.1.1/bin/mvn
    
    0 讨论(0)
提交回复
热议问题