【问题标题】:Maven not picking up property defined in settings.xml in .m2Maven 没有获取 .m2 中的 settings.xml 中定义的属性
【发布时间】:2011-10-06 19:42:48
【问题描述】:

我已经定义了这样的属性:

<profile>
<id>dand</id>
<properties>
<workSpace>s:/_java/</workSpace>
</properties>
...repos
</profile>

<activeProfiles>
<activeProfile>dand</activeProfile>
</activeProfiles>

我正在尝试使用

访问该属性
<outputDir>${workSpace}/src/main/java</outputDir>

【问题讨论】:

    标签: maven-2


    【解决方案1】:

    我将从 exectugin mvn help:active-profiles 开始测试 dand 配置文件是否有效启用。让我们知道你看到了什么。

    【讨论】:

    • repos 被拾取时它不是处于活动状态吗?不过现在就这样做
    猜你喜欢
    • 1970-01-01
    • 2013-04-01
    • 2020-08-05
    • 2013-01-18
    • 2017-10-07
    • 2012-11-01
    • 1970-01-01
    • 2015-07-07
    • 1970-01-01
    相关资源
    最近更新 更多