You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steinar Bang (JIRA)" <ji...@apache.org> on 2019/03/31 19:13:00 UTC

[jira] [Commented] (MRELEASE-1021) release:prepare and release:update-version sets line endings to crlf for all lines except the first and last lines of the pom.xml files

    [ https://issues.apache.org/jira/browse/MRELEASE-1021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806243#comment-16806243 ] 

Steinar Bang commented on MRELEASE-1021:
----------------------------------------

I have grepped the projects to see if any of the source files contains cr characters, and that this could be the cause of the problem.  But according to grep the source files does not contain cr characters
{noformat}
sb@lorenzo:~/workspaces/ws03/authservice$ grep -r $'\r' * | grep -v node_modules | grep -v target
Binary file authservice.web.security/src/main/resources/web/favicon.ico matches
Binary file authservice.web.users.frontend/src/main/frontend/public/favicon.ico matches
sb@lorenzo:~/workspaces/ws03/authservice$ cd ../osgi-service/
sb@lorenzo:~/workspaces/ws03/osgi-service$ grep -r $'\r' * | grep -v node_modules | grep -v target
sb@lorenzo:~/workspaces/ws03/osgi-service$
{noformat}


> release:prepare and release:update-version sets line endings to crlf for all lines except the first and last lines of the pom.xml files
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-1021
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1021
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare, update-versions
>    Affects Versions: 2.5.3
>         Environment: debian 9.8 "stretch", amd64, openjdk 8u212-b01-1~deb9u1, maven 3.3.9-4
>            Reporter: Steinar Bang
>            Priority: Major
>
> For these two projects
> * https://github.com/steinarb/authservice
> * https://github.com/steinarb/osgi-service
> line endings in the pom.xml files are messed up when I do
> {noformat}
> mvn release:prepare
> {noformat}
> or bump versions with e.g. 
> {noformat}
> mvn --batch-mode release:update-versions -DdevelopmentVersion=1.0.2-SNAPSHOT
> {noformat}
> What happens to the line endings are:
> # First line stays at lf
> # Last line stays at lf
> # All of the intervening lines get crlf
> # The line endings were initially lf (at least they were meant to be)
> # I run the "mvn release:prepare" and "mvn:update-version" commands from a command line on Debian GNU/linux



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)