Maven で構築された Netbeans プラットフォーム アプリケーションがあります。
zip 生成 (nbm:standalone-zip ゴール) の前に、生成されたフォルダー "modules/ext" (すべての外部ライブラリを含む) を削除するために、pom.xml を編集したいと思います。
私はこれを試しました:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<!--remove the module/ext directory-->
<execution>
<id>rmExt</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>/bin/rm</executable>
<workingDirectory />
<arguments>
<argument>-rf</argument>
<argument>${project.build.directory}/myapp/myapp/modules/ext</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
目標を変更しようとしましたが、フォルダーが削除されず、zip に含まれています。
アイデアはありますか?
ありがとうございました