Maven scenarios to include resources from a custom directory in the build process for a Java application
I'm testing a new approach and I've encountered a strange issue with I need some guidance on I'm working with an scenario where Maven is not picking up resource files from a custom directory I've specified in my `pom.xml`... My project structure includes a `src/main/resources` directory, but I also have an additional resources directory at `src/main/custom-resources` that contains configuration files needed for my application. I've configured this additional resource directory in my `pom.xml` as follows: ```xml <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </resource> <resource> <directory>src/main/custom-resources</directory> <includes> <include>**/*.yml</include> </includes> </resource> </resources> </build> ``` Despite this configuration, when I run `mvn clean package`, the files from `src/main/custom-resources` are not being included in the final JAR file. I've checked the logs, but I don't see any warnings or errors related to resource inclusion. I've also tried cleaning my local repository with `mvn clean install` to see if that resolves the scenario but to no avail. How can I ensure that Maven includes resources from my custom directory in the build process? Is there something I might be missing in the configuration? Also, is this the best practice for managing additional resource directories in a Maven project? Thank you! This is part of a larger REST API I'm building. For context: I'm using Java on Debian. Thanks for any help you can provide! I've been using Java for about a year now. Has anyone else encountered this?