Maven release plugin with git, error if commits are pushed during process
问题 We use git repository and maven release plugin. In the first build step, we pull all the changes to local repository, and in the next one we run mvn release:prepare release:perform . release:prepare updates workspace, updates version in pom files, creates tag in repository, runs all the tests, builds jars etc. If it's fine, it then pushes local repository changes to remote one (updated poms and tag created). The problem is that when somebody pushes some changes meanwhile, push from maven