MichaelKatt commented on issue #444:
URL:
https://github.com/apache/maven-resources-plugin/issues/444#issuecomment-3779614871
We had the same issue, but found a workaround.
Originally, we also configured filtering first and then copying of the
files, whereby maven-resources-plugin:3.4.0 overrode the file(s) from the
filtering with the unchanged status.
```
<resource>
<directory>config</directory>
<filtering>true</filtering>
<includes>
<include>**/iaf-version.properties</include>
</includes>
</resource>
<resource>
<directory>config</directory>
</resource>
```
By reversing the order of filtering and copying, the changes from the
filtering are only applied after copying, thus preserving the modified file(s).
```
<resource>
<directory>config</directory>
</resource>
<resource>
<directory>config</directory>
<filtering>true</filtering>
<includes>
<include>**/iaf-version.properties</include>
</includes>
</resource>
```
Therefore try this one:
```
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.js</include>
</includes>
</resource>
<resource>
<directory>src/main/java</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]