If you've got core.autocrlf=input set in your git config and you try to git-add newly-created maven wrapper files to your project on macOS/linux (i.e. the mvnw and mvnw.cmd) then you'll likely see the following output:
$ git add .
warning: in the working copy of 'mvnw.cmd', CRLF will be replaced by LF the next time Git touches itThe easiest way to deal with this is to use a .gitattributes file (add it to your repo root) to force the right line endings for the two maven wrapper scripts. See attached.