Maven - 存储库 url 中的变量替换不起作用

Eph*_*aza 5 maven

我的父 pom 中有以下片段:

<properties>
   <artifactory>http://mydomain/artifactory</artifactory>
</properties>
...
<repositories>
    <repository>
        <id>central</id>
        <url>${artifactory}/libs-release</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
</repositories>
Run Code Online (Sandbox Code Playgroud)

问题是 ${artifactory} 的值在 maven 构建中没有被替换,导致错误:“无法传输工件...没有连接器可用于访问默认类型的存储库中央(${artifactory}/libs-release)”可用工厂 WagonRepositoryConnectorFactory"

在 URL 中使用变量时这是一个已知问题吗?找不到任何与此相关的内容。