Maven uber-jar generation uses application.properties of dependency instead of its own

167 Views Asked by At

I have a quarkus maven project which has properties in src/main/application.properties. This project also has a local dependency that also contains src/main/application.properties since there are tests in the dependency that rely on it (setting them in src/test/application.properties does not work). Example folder structure:

  • dependency
    • src/main/application.properties (contains some settings for integration tests in this dependency)
  • quarkus-project
    • src/main/application.properties (contains different settings for its own project)

When i build an uber-jar for the quarkus-project it successfully creates one, however it contains the application.properties file of the dependency instead of its own.

Uber-jar contents generated for quarkus-project:

  • ...
  • application.properties (<- file from dependency, rather than from quarkus-project)
  • ...

Why is that? Why does it use the application.properties of a dependency rather than its own when building the specific project? Is there a way to specify a priority or such?

0

There are 0 best solutions below