每个Intellij Maven模块的自定义Maven设置/构建位置



是否可以根据Intellij maven模块自定义maven设置/构建位置?

似乎这些maven设置属于每个项目而不是每个模块提供的workspace.xml。我需要在workspace.xml中给出相同的代码片段:

<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="mavenHome" value="<CUSTOM>" />
<option name="userSettingsFile" value="<CUSTOM>" />
</MavenGeneralSettings>
</option>
<option name="importingSettings">
<MavenImportingSettings>
<option name="importAutomatically" value="true" />
</MavenImportingSettings>
</option>
</component>

为每个。iml,或者有任何自定义工作区。xml可用的模块?

intellij maven developer online.

现在无法在设置中为不同的链接maven项目设置不同的maven发行版。(我们计划将来这样做)

作为一种解决方法,您可以尝试使用maven包装器。IDEA现在在2020.1中支持每个项目的maven包装器,但仅用于导入。稍后将支持通过mvnw执行。

最新更新