We having a problem trying to commit changes, which happens with maven. Because they are in target folder how could we do it?
Replacing via resources filtering. In properties we've got
<BUILD_VERSION>version-1.0.0</BUILD_VERSION>
that's our property and also such marker occurs in some files - after changing them we should commit it to git
<resource>
<directory>.</directory>
<filtering>true</filtering>
</resource>
Also we doing whole release via maven release plugin, so the final command looks like
mvn clean release:prepare release:perform
This release plugin is using scm:
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>${maven-scm-plugin.version}</version>
<configuration>
<message>SCM commit</message>
</configuration>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>checkin</goal>
</goals>
</execution>
</executions>
</plugin>
Adding includes and excludes properties to scm plugin didn't help us.
How to do back-commit after those changes? Or how can we change our files and then commit those changes, will maven replacer plugin help?