我使用buildnumber-maven-plugin,我需要从svn获取构建数量的项目.我的pom.xml:
scm:svn:https://username:password@path_to_repositiry
org.codehaus.mojo
buildnumber-maven-plugin
1.1
validate
create
false
false
javasvn
com.google.code.maven-scm-provider-svnjava
maven-scm-provider-svnjava
2.0.2
org.tmatesoft.svnkit
svnkit
1.7.4-v1
但是当我打包一个项目时,我有错误:
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.1:create (default)on project myproject: Cannot get the revision information from the scm repository : [ERROR] Exception while executing SCM command. svn: E155021: This client is too old to work with the working copy at [ERROR] 'D:\projects\myproject' (format {1}).
虽然我使用TortoiseSVN 1.8.2!
我读到使用TortoiseSVN 1.7及更早版本的buildnumber-maven-plugin表现得如此.
如何使用SVN和Maven获取内部版本号?