maven.multiModuleProjectDirectory 有什么用? [英] What is maven.multiModuleProjectDirectory used for?
问题描述
我在 SO 和 Maven 邮件列表上看到了很多关于设置 env 参数 maven.multiModuleProjectDirectory
的讨论,但我无法准确理解此设置的用途/用途
I've seen a lot of chatter regarding setting an env parameter maven.multiModuleProjectDirectory
, both on SO and on Maven mailing lists, but I am having trouble understanding exactly what this setting does/is used for.
我已经搜索了 google、maven 站点、文档等,但似乎无法找到实际解释此参数的用途或如何利用它的参考.
I've searched google, maven sites, docs, etc, but can't seem to find a reference that actually explains what this parameter is for, or how to leverage it.
任何人都可以解释它的目的和/或指向我的文档吗?它是在哪个版本的 maven 中引入的?
Can anyone either explain it's purpose and/or point me to the documentation for it? In which version of maven was it introduced?
推荐答案
Maven 3.3.1 中引入了环境变量,可从 mvn
脚本或 mvn.cmd 中获得
脚本.目的是找到可以找到 .mvn
位置的多模块结构的开始.
The environment variable has been introduced in Maven 3.3.1 which is available from within the mvn
script or mvn.cmd
script. The intention is to find the start of a multi module structure where the .mvn
location can be found.
引入它是为了使项目内的配置成为可能,而不是从外部进行.
This was introduced to make configuration within the project possible instead from outside.
更新此变量仅在 mvn
脚本中使用,既没有记录也没有公开使用(内部实现细节).所以我强烈建议不要使用它.否则将来可能会出现问题.
Update
This variable is only used in the mvn
script and is neither documented nor intended for public used (internal implementation detail). So I strongly recommend not to use it. Otherwise things might break in the future.
这篇关于maven.multiModuleProjectDirectory 有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!