Linux と IBM メインフレームの両方でデュアル ビルドされた Java アーティファクトがあります。すべての依存シェル スクリプト (/sbin ディレクトリ内) は最初は ASCII で記述されていますが、別のディレクトリ (/sbin-ebcdic 内) にコピーされます。そこで、maven-resources-plugin を構成して、それを実行します。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>copy-sbin</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/sbin-ebcdic</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}/sbin</directory>
</resource>
</resources>
<encoding>IBM037</encoding>
</configuration>
</execution>
</executions>
</plugin>
ディレクトリ全体をコピーしますが、その中のすべてのファイルは、次のように UTF-8 エンコーディングのままです。
<encoding>IBM037</encoding>
設定が存在しません。maven-resources-plugin が意図したとおりに機能しないのはなぜですか? バグですか?