maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steinar Bang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6622) 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
Date Tue, 02 Apr 2019 21:04:02 GMT

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

Steinar Bang commented on MNG-6622:
-----------------------------------

[~michael-o] I have to go partly back on "not reproducible with 3.6.0".

The is actually partially reproducible with 3.6.0:
# The pom files in the working directory after "mvn release:prepare" have the weird line endings
(first and last line lf only, the rest of the files crlf)
# However: the changes aren't persisted in the commits
# "mvn release:rollback" puts back a file without crlf strangeness (I haven't had a successful
"mvn release:perform" on this project yet, so I don't know if that also fixes things)

Since the change isn't persisted in the commits the way it was with maven 3.3.9, it isn't
critical, but hints at an underlying issue that should be corrected.

> 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: MNG-6622
>                 URL: https://issues.apache.org/jira/browse/MNG-6622
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.9
>         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)

Mime
View raw message