maven フィルター タグと、それがプラグインの properties-maven-plugin の files タグにどのように対応するかについて説明したいと思います。
問題のプロファイル:
<profile>
<id>local-spm-caefeeder-preview</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<quiet>true</quiet>
<files>
<file>${main.basedir}/src/config/global.properties</file>
<file>${main.basedir}/src/config/caefeeder/caefeeder_global.properties</file>
<file>${main.basedir}/src/config/caefeeder/caefeeder_preview.properties</file>
<file>${main.basedir}/src/config/local.properties</file>
<file>${main.basedir}/src/config/${user.name}.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<filters>
<filter>${main.basedir}/src/config/caefeeder/caefeeder_global.properties</filter>
<filter>${main.basedir}/src/config/caefeeder/caefeeder_preview.properties</filter>
<filter>${main.basedir}/src/config/local.properties</filter>
<filter>${main.basedir}/src/config/${user.name}.properties</filter>
</filters>
</build>
</profile>
私の調査によると、フィルターは、置換が必要な変数を含むファイルを定義します。「properties-maven-plugin」は、ファイルタグで定義されたファイルからこれらの変数を提供しますか?