I have two different java modules A and B, where A is a dependecy of B. In both modules I have a .property file:
operation=${my-prop}
The value of ${my-prop} is different depending on module (I have a property inside the main pom of each module, the value is "true" inside A and "false" inside B)
In the pom of each module there is:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<overwrite>true</overwrite>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>nix64</nonFilteredFileExtension>
</nonFilteredFileExtensions>
</configuration>
</plugin>
When I build module A, inside the jar I can see the correct .property file (operation=true); insted, when I build module B, inside the jar I find the .property file of A (operation=true); any suggestion?