jira-importer commented on issue #949: URL: https://github.com/apache/maven-scm/issues/949#issuecomment-2964635570
**[Andreas Dangel](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=adangel)** commented By default - maven-release-plugin 2.4.2 uses scm 1.7. Once git has been localized, gitexe failed to parse "git status", hence SCM-686 was done. LANG=C gives you an English git output - however, this is not enough anymore. It seems that git has been modified, to not return "#" as the git status output - which could be a git bug, as the man page still mentions this behavior. Here's the change it git: https://github.com/git/git/commit/2556b9962e7c0353d562b7bf70eed11d8f29d0b0 There is a configuration to restore the old behavior: status.displayCommentPrefix **Workaround**: 1. Configure old behavior: `git config --add status.displayCommentPrefix true` 2. make sure you switch to English (e.g. `export LANG=C`) 3. run `mvn release:prepare` - it should work now I also tried scm 1.9 and could reproduce the problem - it only happens, if you have a subdirectory and you are not releasing from the toplevel repository directory. To run mvn release plugin with scm 1.9, add the following dependencies: ``` <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-api</artifactId> <version>1.9</version> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-provider-gitexe</artifactId> <version>1.9</version> </dependency> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
