【问题标题】:Not able to update .properties file value via maven command无法通过 maven 命令更新 .properties 文件值
【发布时间】:2022-07-28 02:15:54
【问题描述】:

我有 global.properties 文件,例如:- baseUrl=${baseUrl}

发送命令 mvn test -DbaseUrls 时出现错误: 错误:-

[错误] 错误:

[ERROR] parameterValue 不能为空

[错误] 路径中索引 1 处的非法字符:${baseUrl}

[信息]

Pom.xml 是:

【问题讨论】:

  • pom.xml 是:- UTF-81.71.7defaultURLValue

标签: maven junit4 rest-assured


【解决方案1】:

如果您需要在外部文件中定义属性,请使用Properties Maven Plugin

【讨论】:

    猜你喜欢
    • 2021-02-06
    • 2023-01-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-16
    • 1970-01-01
    • 2014-06-29
    • 1970-01-01
    相关资源
    最近更新 更多