I'm using Maven JGit-Flow Plugin in order to automate some of the release process. Unfortunately I'm hitting this problem when trying to start new release using mvn jgitflow:release-start
:
[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start (default-cli) on project <myProjectName>: Error starting release: Error starting release: Working tree has untracked files
However I cannot see and untracked files here (nor on master):
git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
nothing to commit, working directory clean
Any idea how does Maven JGit-Flow Plugin find untracked files?
Fixed it by allowing untracked files:
<plugin>
<groupId>external.atlassian.jgitflow</groupId>
<artifactId>jgitflow-maven-plugin</artifactId>
<version>1.0-m5.1</version>
<configuration>
<pushReleases>true</pushReleases>
<allowUntracked>true</allowUntracked>
</configuration>
</plugin>