に Maven プロパティ(*)をいくつか含めたいと思いますsrc/main/webapp/META-INF/context.xml
。
(*)例: ${data-source-name}
、など - しかし${data-source-factory}
、${jdbc-connection-url}
偉大な故レスリー・ニールセンの言葉を借りれば、それは今は重要ではありません。
これは、次のmaven-resource-plugin 構成のようなものを使用して達成できるかもしれないと考えました:
<build>
<resources>
<resource>
<directory>src/main/webapp</directory>
<includes>
<include>**/*</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
ただし、これにより、WAR ファイル内に 2 つのバージョンの context.xml が作成されます。
\META-INF\context.xml <=== Properties *not* expanded
\WEB-INF\classes\META-INF\context.xml <=== Properties expanded
どこが間違っていますか?