Skip to content

Maven launching arguments #11

Description

@ziguane

Hello,

I need help with this please
The profile arguments seem to be overriden when the project is launch with maven

mvn clean compile exec:java -Dexec.args="--profile devexec --mode dev"

Some logs below
...
12:06:49.483 [com.erelav.Launcher.main()] INFO fathom.conf.Settings - Runtime profile is 'devexec'
12:06:49.562 [com.erelav.Launcher.main()] DEBUG fathom.conf.Settings - Loaded config 'file:PATH_TO_PROJECT/target/classes/conf/devexec.conf'
12:06:49.567 [com.erelav.Launcher.main()] DEBUG fathom.conf.Settings - Failed to find working directory config file 'PATH_TO_PROJECT/devexec.conf'
1
...
12:06:51.803 [com.erelav.Launcher.main()] INFO fathom.conf.Settings - Runtime profile is 'default'
12:06:51.818 [com.erelav.Launcher.main()] DEBUG fathom.conf.Settings - Loaded config 'file:PATH_TO_PROJECT/target/classes/conf/default.conf'
12:06:51.819 [com.erelav.Launcher.main()] DEBUG fathom.conf.Settings - Failed to find working directory config file 'PATH_TO_PROJECT/default.conf'...

What is the good way ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions