作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试让 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/
我正在尝试让 scmCommentPrefix 按照 http://maven.apache.org/plugins/maven-release-plugin/faq.html#scmCommentP
我是一名优秀的程序员,十分优秀!