title: Remove the generated modules/ext folder for a Netbeans Platform Application under Maven
body: <p>I have a Netbeans Platform Application which is builded with Maven.</p>
  
  <p>I would like to edit the pom.xml in order to remove the generated folder "modules/ext" (containing all external libs) before the zip generation (nbm:standalone-zip goal)</p>
  
  <p>I tried this :</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;executions&gt;
                  &lt;!--remove the module/ext directory--&gt;
                  &lt;execution&gt;
                      &lt;id&gt;rmExt&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;exec&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;executable&gt;/bin/rm&lt;/executable&gt;
                          &lt;workingDirectory /&gt;
                          &lt;arguments&gt;
                              &lt;argument&gt;-rf&lt;/argument&gt;
                              &lt;argument&gt;${project.build.directory}/myapp/myapp/modules/ext&lt;/argument&gt;
                          &lt;/arguments&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>I tried to change the goal but the folder is not removed and then contained in the zip.</p>
  
  <p>Do you have some ideas ?</p>
  
  <p>Thank you</p>