Try changing the pom.xml
to look like this:
...
<executions>
<execution>
<id>add-version-to-git</id>
<phase>package</phase>
<goals>
<goal>add</goal>
<goal>checkin</goal>
</goals>
<configuration>
<basedir>./</basedir>
<includes>versions/*</includes>
<message>[Add Version to git]</message>
</configuration>
</execution>
</executions>
...
Try using message
property instead of systemProperties
.
Or you could always do this in command line like:
mvn -Dmessage="<commit_log_here>" scm:checkin
as stated here