I have this scenario. I'm developing a REST service with Spring Boot and I have a dependency jar which is another Spring Boot project that I included as a dependency using this method:
Everything compiles perfectly and I can call classes from the dependency jar. Inside the code in the dependency jar I use @Value annotations to read values from application.properties of the "father" project, but it always return null.
If I try to read the same value from the father project it works.
I removed the original application.properties file inside the dependency jar, in order to avoid weird double properties file, but nothing changes.
Any idea on how to solve this problem?
Thanks in advance.