在我的 Maven 项目中,我有一个 .mvn
文件夹,其中包含 maven.config
和 jvm.config
文件,用于存储特定于项目的参数。我使用 IntelliJ 进行开发,当我运行 Maven 配置(使用捆绑的 Maven 或自定义 Maven 安装)时,在构建过程中不会拾取这些文件中的参数。
但是,当我使用自定义 Maven 安装在终端上运行相同的 Maven 目标时,所有参数都会被拾取。
我如何配置 IntelliJ 才能获取 maven.config
和 jvm.config
?
最佳答案
IntelliJ 2021.3 中终于添加了对 maven.config
的支持。
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
关于java - IntelliJ - IntelliJ 运行配置忽略 maven.config 和 jvm.config 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60547271/