title: I want to execute shell commands from Maven's pom.xml
body: <p>I want to execute Linux shell commands with Maven. Here is what I tried:</p>
  
  <pre><code>&lt;plugin&gt;  
    &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; 
    &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt; 
    &lt;version&gt;1.1.1&lt;/version&gt; 
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;goals&gt;
          &lt;goal&gt;exec&lt;/goal&gt; 
        &lt;/goals&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
    &lt;configuration&gt;
      &lt;executable&gt;hostname&lt;/executable&gt; 
    &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>