svn1.7 appears to be part of a Subversion 1.7 or greater working copy. Please upgrade your Subversion client to use this 編繹失敗解決方案
Posted on 2012-03-21 09:44 云云 閱讀(22147) 評論(3) 編輯 收藏
The current (8.0-SNAPSHOT) build uses version 1.5 of the maven-svn-revision-number-plugin plugin, when source code has been checked out using a subversion client version 1.7 the build fails with a subversion error because the repository metadata in the working copy is not upward compatible,
com.google.code.maven-svn-revision-number-plugin:1.5:maven-svn-revision-number-plugin uses SVNkit 1.3.x which is compatible with subversion 1.6=<
When the maven-svn-revision-number-plugin is updated to version 1.7 (currently latest release of this plugin) you can specify a commandline option (-Dsvn-revision-number.failOnError=false) to ignore the subversion error and the build completes normally. Note that com.google.code.maven-svn-revision-number-plugin:1.7:maven-svn-revision-number-plugin still relies on svnkit:1.3.5 so the error is still there, the updated plugin just gives an option to ignore it either from the commandline or as a config option.
出現了這樣的錯誤的時候 是svn版本問題
由于我的電腦上安裝了客戶端是1.7的版本
但是pom.xml中使用的是1.6
<plugin>
<groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
<artifactId>maven-svn-revision-number-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<entries>
<entry>
<prefix>SVN</prefix>
</entry>
</entries>
</configuration>
</plugin>
在編繹時 出現了上述異常 ,我想可能是版本問題 于是乎我就把pom.xml中maven-svn-revision-number-plugin的<version>1.6</version>改成了<version>1.7</version>
心想可能問題解決了 沒想到編繹時還是報以上錯誤
于是在網上狂搜 終于發現了 有人也出現了這樣的問題
經過實驗發現這個方案靠譜 就記錄下來了 路過的人看到了也可以方便解決問題
方案:
當然上面的<version>1.7</version>還是要保留的 因為我的客戶端也是1.7
然后呢 在編繹的時候 要加入 -Dsvn-revision-number.failOnError=false
來個完整的 命令:eclipse:eclipse -Dsvn-revision-number.failOnError=false
就這樣ok了。