kalidali
kalidali

Reputation: 286

IntelliJ - maven.config and jvm.config files are ignored by IntelliJ run configuration


In my Maven project, I have a .mvn folder where my maven.config and jvm.config files are located for project-specific arguments. I develop with IntelliJ and when I run a maven configuration (either with the bundled maven or a custom maven installation), the arguments in those files are not picked up during the build.
However, when I run the same maven goal over the terminal with a custom maven installation, the arguments all get picked up.

How do I have to configure IntelliJ so the maven.config and jvm.config are being picked up?

Upvotes: 3

Views: 7240

Answers (1)

adanski
adanski

Reputation: 805

Support for maven.config has been finally added in IntelliJ 2021.3.

It is now possible to configure the Maven settings for each project in the .mvn/maven.config file in Preferences/ Settings | Build, Execution, Deployment | Maven by selecting Use settings from .mvn/maven.config.

https://blog.jetbrains.com/idea/2021/11/intellij-idea-2021-3/#build_tools

Upvotes: 3

Related Questions