(with the latest version of maven-assembly-plugin currently: 3.0.0)
I had the same problem with assembly build.
I had buffer dependencies with the same properties file, but with different content (one is good and the other is the first with missing ads).
The problem was that in the end I had a bad configuration file replacing another in my assembly.
The only clean solution I found to overwrite the file was as follows:
1 - Add a nice file that I wanted to save for assembly in my project: ex: src/main/resources/META-INF/services/myfileWhichOverwriteTheBadDependenciesRessources.xml
2 - add the set of files with the 'filter' set to 'true' in my build descriptor:
<fileSet> <directory>${project.main.resources}/META-INF</directory> <outputDirectory>META-INF</outputDirectory> <filtered>true</filtered> </fileSet>
(the property "project.main.resource" in my case is set to "src / main / resources")
Charles Vuillecard
source share