gpt4 book ai didi

maven - scmCommentPrefix 换行符

转载 作者:行者123 更新时间:2023-12-04 00:44:57 32 4
gpt4 key购买 nike

我正在尝试让 scmCommentPrefix 按照 http://maven.apache.org/plugins/maven-release-plugin/faq.html#scmCommentPrefix 上的文档工作

问题是,无论您添加什么前缀,都会在没有空格的情况下连接到各种发布插件注释,所以如果我有 scmCommentPrefix=ABCD-123,那么生成的注释看起来像(来 self 的 dryRun 尝试):

[INFO] Full run would be checking in 3 files with message: 'ABCD-123prepare for
next development iteration'

文档提到您可以使用“ALT 10”或“ALT 13”在前缀中添加换行符 - 有人可以给我一个工作示例吗?因为如果我在引号内添加这些字符串中的任何一个,它们将按字面添加,如果我省略引号,我会收到一个 Maven 错误,提示 ALT 的目标无效。

最佳答案

对于空格,用双引号将参数括起来,例如-DscmCommentPrefix="ABCD-123"。注意第二个双引号前的空格。

-DscmCommentPrefix="ABCD-123\n" 是否适用于换行符?

关于maven - scmCommentPrefix 换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12321705/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com