We have added a couple of profiles to our application.yml file that specify different persistent unit configurations.
I have a few questions how this is supposed to work.
1. I have found that I have to specify one profile at build time else the build will fail because it can't match the beans being injected via @PersistenceUnit so I do the following at build time.
mvn clean install -Dquarkus.profile=dataWarehouseA
2. How can I set this as the default profile for the build so we don't have to pass it on the command line? Can this be configured via quarkus-maven-plugin's configuration?
3. But now at runtime I need to be able to select a different profile so I run like this:
-jar ./target/app-quarkus-runner.jar -Dquarkus.profile=dataWarehouseB
However Quarkus is always using dataWarehouseA, how do I configure it to use dataWarehouseB at runtime?
-Dave