I am doing SVN for a tree with several branches, and I use the buildnumber plugin to get the version of SVN with the javasvn implementation provider.
When I try to build a specific branch, it seems that Maven is retrieving a revision of the top-level folder of the tree, and not a revision of that particular branch.
For instance:
root revision number: 100
root / branch1 Revision No: 99
root / branch2 Revision No: 97
In my case, when I build branch 1, I need 99 for the number with number, not 100.
I am using SVN 1.7.
This is how I configure the plugin:
<build> <finalName>${project.artifactId}-${project.version}-SVN${buildNumber}</finalName> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <executions> <execution> <phase>validate</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <doCheck>false</doCheck> <doUpdate>false</doUpdate> <providerImplementations> <svn>javasvn</svn> </providerImplementations> </configuration> </plugin>
Any idea is much appreciated.
Thanks
source share