Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scmCommentPrefix line feeds

I'm trying to get the scmCommentPrefix working as per the documentation at http://maven.apache.org/plugins/maven-release-plugin/faq.html#scmCommentPrefix

The problem is that whatever prefix you add is concantenated to the various release plugin comments without a space, so if I have scmCommentPrefix=ABCD-123, then the resulting comments look like (from my dryRun attempt):

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

The documentation mentions you can add a line break to the prefix with "ALT 10" or "ALT 13" - can someone give me a working example? Because if I add either of those string within quotes, they are added literally, and if I omit the quotes I get a maven error complaining about an invalid goal of ALT.

like image 848
RCross Avatar asked Sep 08 '25 11:09

RCross


2 Answers

For whitespace, enclose the argument in double quotes, e.g. -DscmCommentPrefix="ABCD-123 " . Note the space before the second double quote.

Does -DscmCommentPrefix="ABCD-123\n" work for the newlines?

like image 61
user944849 Avatar answered Sep 10 '25 02:09

user944849


You can use ${line.separator} for newline. e.q.

-DscmCommentPrefix="ABCD-123${line.separator}

See comment https://jira.codehaus.org/browse/MRELEASE-156

like image 25
alfred.schalk Avatar answered Sep 10 '25 02:09

alfred.schalk