Commit some files during maven release: prepare

Is it possible to commit some file (no pom.xml), and mvn release: prepare?

In My MultiModul Project, I configured the rlease plugin with preparing Goals to change the version in the sql file.

<preparationGoals>clean verify org.codehaus.mojo:build-helper-maven-plugin:1.5:parse-version com.google.code.maven-replacer-plugin:replacer:1.5.0:replace</preparationGoals> 

Everything works fine, but the modified sql file will not be executed.

The sql file is located in a subdirectory of the parent folder. No pom.xml

+5
source share
2 answers

Now I use scm: checkin in the preparation of Goals

clean verify org.codehaus.mojo: build-helper-maven-plugin: 1.5: parse version of com.google.code.maven-replacer-plugin: replacer: 1.5.0: replace scm: checkin -Dmessage = "... "-DworkingDirectory =. / ... / ...

But this is not the same as the pom.xml command. This causes mvn rlelease: rollback not to roll back from the first commit in order to prepare!

Now they look like this:

  <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <configuration> <tagBase> ...... </tagBase> <autoVersionSubmodules>true</autoVersionSubmodules> <arguments>-Dtest='*IT,*Test' -DfailIfNoTests=false</arguments> <tagNameFormat>@{project.version}</tagNameFormat> <preparationGoals>clean verify org.codehaus.mojo:build-helper-maven-plugin:parse-version com.google.code.maven-replacer-plugin:replacer:replace scm:checkin -Dmessage="Version in Komponentenversion.sql incrementiert" -DworkingDirectory=./db/include</preparationGoals> </configuration> </plugin> 
+3
source
+1
source

All Articles