"Execute Maven Goal" not respecting project specific settings.xml

Answered

 

The project specific settings.xml configured in IDEA settings is not respected when I use the "Execute Maven Goal" Button.

Looks like a bug to me, because it is used when either using a Run configuration or execute a goal from the Lifecycles.

I can specify it of course here on the command line with the -s option, but I had expected it would be used when configured.

0
5 comments

What IDE version do you use? What settings do yo have set for this Maven run configuration:

and what settings are set in Settings(Preferences) | Build, Execution, Deployment | Build Tools | Maven

There was similar issue reported some time ago: https://youtrack.jetbrains.com/issue/IDEA-160329

0
Avatar
Permanently deleted user

Could be the same bug, just isn't precise enough, because I can't figure out how the submitter "Execute[d] a maven task".

IDEA Ultimate 2019.1.3

For what I did: I was not using a run configuration, but just the bare "Execute Maven Goal" button like you see on my screenshot.
On this one you have to enter the goal "by hand", as a command line. Actually there I can specify a different settings.xml with the -s option.

My settings for Maven:

0

The https://youtrack.jetbrains.com/issue/IDEA-160329 looks like the same case. As a workaround try creating the Maven Run/Debug Configuration and verify the settings there.

0
Avatar
Permanently deleted user

Using a Run/Debug configuration does indeed work (as I mentioned in my OP).
Lifecycle goals executed from the tool window are working, too.

Should I add to https://youtrack.jetbrains.com/issue/IDEA-160329 ?

 

0

Please vote and follow the IDEA-160329 I've mentioned your report in that issue.

0

Please sign in to leave a comment.