I get maven error :
JavaScript
x
Cannot get the revision information from the scm repository
Any idea how to solve this?
Advertisement
Answer
A quick search on Google seems to indicate that this error is related to the buildnumber-maven-plugin. However, I couldn’t reproduce the error on the command line on my machine (Maven 2.2.1, Java 1.6.0_16, svn 1.6.5 on GNU/Linux):
JavaScript
pascal@laptop:~/tmp/$ svn co http://wiquery.googlecode.com/svn/branches/1.0-m2 wiquery
pascal@laptop:~/tmp/$ cd wiquery
pascal@laptop:~/tmp/wiquery$ mvn validate
[INFO] Scanning for projects
[INFO] ------------------------------------------------------------------------
[INFO] Building WiQuery project
[INFO] task-segment: [validate]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: /bin/sh -c cd /home/pascal/tmp/wiquery && svn --non-interactive info
[INFO] Working directory: /home/pascal/tmp/wiquery
[INFO] Storing buildNumber: 208 at timestamp: 1256499766371
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sun Oct 25 20:42:46 CET 2009
[INFO] Final Memory: 13M/77M
[INFO] ------------------------------------------------------------------------
pascal@laptop:~/tmp/wiquery$
From what I can see on Google, possible causes of problem include:
- svn executable (i.e. svn.exe on windows) not being on the path
too old svnkit version compared to your svn client (see this thread)- missing environment variables on OS X (see MOJO-1289)
- etc etc
But without more information on your context, your environment, what you are doing, when this error occurs, etc, it seems hard to go further in the diagnostic.