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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With