properties
ビルド中に、プロジェクトワークスペースからsrc/main/resources/my
フォルダーに5つのファイルをコピーする必要がありますC:\my
(Windows 7で開発しています)。C:\my
存在しますが空です。
pom.xmlファイルで次のコードを使用していますが、ファイルがコピーされません。
ビルド中にエラーは発生しませんが、次の出力が表示されます。
[INFO] --- maven-resources-plugin:2.5:copy-resources (copy-my-resources) @ my-webapp ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 5 resources
[INFO] Copying 5 resources to somewhere
コピーが成功したときに通常のように表示されないことに注意してください。
ただし、ファイルはまったくコピーされませんC:\my
。
xmlコードで何を変更する必要があるかわかりますか?
関連するコードは次のとおりです。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-my-resources</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<!-- overwrite! -->
<overwrite>true</overwrite>
<outputDirectory>${env.HOMEDRIVE}/my</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/my</directory>
<filtering>false</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>