There is a project for the WildFly server hosted on OpenShift. For those who do not know, projects on OpenShift are published on Git, and with the help of POM.xml are collected directly on the server.
Directly question. For the application to work on my local and remote servers, different application configurations are used (host / port to connect to the database, which are stored in the .properties file).
Let the Release configuration file contain data for work on the destination server, be transmitted via Git, and the code refers to it. And the Debug file contains the data to be deployed on the local server and is located in a separate resource folder, not added to Git.
Is there a way to substitute the main release file with a debug file, depending on the launch site, using the IDEA, Maven or Java tools?
