Maven scenarios to properly include resources from multiple modules in multi-module project with dynamic versioning
I've been working on this all day and I've been struggling with this for a few days now and could really use some help... I'm working with an scenario with a multi-module Maven project where some resources from child modules are not being included in the final JAR of the parent module... My project structure looks like this: ``` my-parent-project βββ pom.xml βββ module-a β βββ pom.xml βββ module-b βββ pom.xml ``` In `module-a/pom.xml`, I have configured the resources like this: ```xml <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> </includes> </resource> </resources> </build> ``` In `module-b/pom.xml`, I again define some resources: ```xml <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build> ``` The parent `pom.xml` is set to use dynamic versioning with a property: ```xml <properties> <my.module.version>1.0.0-SNAPSHOT</my.module.version> </properties> ``` However, when I run `mvn clean package`, only the resources from `module-a` are included in the final JAR, while those from `module-b` seem to be ignored. I've already tried: - Checking if `module-b` is properly referenced in the parent `pom.xml`. - Verifying that the resources exist in the expected directory. - Cleaning the project using `mvn clean` before building. The output from the build process doesn't provide any hints regarding missing resources, it simply states that the build is successful. I even added `-X` for debug output, but it doesnβt clarify the resource inclusion scenario. Is there a configuration that I might be missing or a limitation with dynamic versioning affecting resource inclusion? Any help would be much appreciated! This is part of a larger application I'm building. Hoping someone can shed some light on this. I'd love to hear your thoughts on this.