The svn-revision-number-maven-plugin could help you adding the SVN revision number to your built artifact. Configure your pom.xml as follow.
... <build> <finalName>${project.artifactId}-r${svn.revision}</finalName> <plugins> <!-- Use the svn revision number for the built artifact --> <plugin> <groupId>com.google.code.maven-svn-revision-number-plugin</groupId> <artifactId>svn-revision-number-maven-plugin</artifactId> <version>1.13</version> <executions> <execution> <goals> <goal>revision</goal> </goals> </execution> </executions> <configuration> <entries> <entry> <prefix>svn</prefix> <!-- create the ${svn.revision} --> </entry> </entries> </configuration> </plugin> </plugins> </build> ...
Continue reading Maven – Add SVN revision number to the name of your built artifact