+ <plugin>
+ <groupId>com.google.code.maven-replacer-plugin</groupId>
+ <artifactId>maven-replacer-plugin</artifactId>
+ <version>1.4.0</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>replace</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <file>src/main/resources/net/rizon/acid/core/Version.java.template</file>
+ <outputFile>src/main/java/net/rizon/acid/core/Version.java</outputFile>
+ <replacements>
+ <replacement>
+ <token>@Git-Tag@</token>
+ <value>${mvngit.tag}</value>
+ </replacement>
+ <replacement>
+ <token>@Git-Revision@</token>
+ <value>${mvngit.commit.id}</value>
+ </replacement>
+ <replacement>
+ <token>@Git-Revision-Short@</token>
+ <value>${mvngit.commit.abbrev}</value>
+ </replacement>
+ <replacement>
+ <token>@Git-Author@</token>
+ <value>${mvngit.commit.author.name}</value>
+ </replacement>
+ <replacement>
+ <token>@Git-Author-Email@</token>
+ <value>${mvngit.commit.author.email}</value>
+ </replacement>
+ <replacement>
+ <token>@Git-Author-Date@</token>
+ <value>${mvngit.commit.author.date}</value>
+ </replacement>
+ <replacement>
+ <token>@Project-Version@</token>
+ <value>${project.version}</value>
+ </replacement>
+ </replacements>
+ </configuration>
+ </plugin>