Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 689
kalidali Avatar asked Nov 26 '25 21:11

kalidali


1 Answers

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

like image 141
adanski Avatar answered Nov 28 '25 11:11

adanski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!