title: exec-maven-plugin cannot execute .sh script: permission denied
body: <p>I have a bash script which I want maven to run after the compilation phase, since the script is supposed to deploy bundles. Here is the plugin I am trying to utilize in my release module:</p>
  
  <pre><code>&lt;plugin&gt;
            &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
            &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
            &lt;executions&gt;
              &lt;execution&gt;
                &lt;id&gt;deploy-bundles&lt;/id&gt;
                &lt;phase&gt;install&lt;/phase&gt;
                &lt;goals&gt;
                  &lt;goal&gt;exec&lt;/goal&gt;
                &lt;/goals&gt;
                &lt;configuration&gt;
                  &lt;executable&gt;${basedir}/deploy.sh&lt;/executable&gt;
                &lt;/configuration&gt;
              &lt;/execution&gt;
            &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>I have the <code>deploy.sh</code> in the correct path, so that's verified. Now when I do <code>mvn install</code> I get the following error:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (deploy-bundles) on project module.release: Command execution failed. Cannot run program "/bla/bla/module.release/deploy.sh" (in directory "/bla/bla/module.release"): error=13, Permission denied -&gt; [Help 1]
  </code></pre>
  
  <p>First, I thought it was about the bash script I wrote. So I changed it to a simple bash script like this:</p>
  
  <pre><code>#!/bin/bash          
  STR="Hello World!"
  echo $STR    
  </code></pre>
  
  <p>however, I got the same error. So it is not about the code. Should I given maven special rights? Should use the <code>sudo</code> command?</p>