I am trying to build my spring-boot application using maven using below command. mvn -X -Dmaven.test.skip=true deploy During this step, maven-resources-plugin tries to copy my application.yaml file to my targetclasses folder. And this fails with an IllegalArgumentException. Relevant part of the stack trace. Any ideas on why this is failing? How can I ensure that my file gets copied? My