war ファイルをビルドする Maven プロジェクトがあります。
Maven ビルド ファイルに yui コンプレッサーを含めると、どの js ファイルとも関係のない src/main/resources/ にあるファイルが、process-resources 中に処理され、ターゲット ディレクトリにコピーされるときに空になります。確かに非常に奇妙です。yuicompressor プラグインがサイクルから削除されると、他のリソースは問題なく処理されます。
誰もそれを見たことがありますか(はい、そう言ってください;-))?
これが私の設定です:
YUI コンプレッサーの設定:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/extjs*/**/*.js</exclude>
<exclude>**/extjs*/**/*.css</exclude>
</excludes>
<nosuffix>true</nosuffix>
</configuration>
</plugin>
そして、ターゲット ディレクトリにコピーされたときに空であるファイルを含む Resources 構成:
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
繰り返しますが、リソース ディレクトリ内のファイル (log4j.xml など) がターゲット ディレクトリにコピーされていますが、それらは空です。
ご協力いただきありがとうございます!