![]() |
1
42
|
![]() |
2
21
请注意,这与提供多模块项目的顶级根目录的属性不同,无论目录结构在哪里
另见: Finding the root directory of a multi module maven reactor project |
![]() |
3
16
|
|
4
4
使用 directory-maven-plugin with directory-of goal 与其他建议不同:
该插件允许您将自己选择的属性设置为项目任何模块的绝对路径。在我的例子中,我将它设置为根模块。。。 在我的项目根pom中:
|
![]() |
5
3
可以使用以下方法创建此类属性:
directory-maven-plugin
.
使用插件的
|
![]() |
6
2
我认为,没有这样的变数。只有在公认的答案中 Maven2 property that indicates the parent directory . |
![]() |
7
2
变量插值 为什么我不能使用不同的解决方案:
所以,在我的情况下,我使用了 环境变量
|