svn client version: The path '/openmrs-modules/webservices.rest' appears to be part of a Subversion 1.7 or greater working copy

0 views
Skip to first unread message

Mathias Lin | Meta Healthcare

unread,
Apr 12, 2012, 10:38:22 PM4/12/12
to d...@openmrs.org
I try to build ('mvn install') the webservices.rest module project,
and getting an error as below:

[ERROR] Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on
project webservices.rest-omod: Cannot get the revision information
from the scm repository :
[ERROR] Exception while executing SCM command. svn: The path
'/Users/myuser/Projects/healthcare/openmrs-modules/webservices.rest'
appears to be part of a Subversion 1.7 or greater
[ERROR] working copy. Please upgrade your Subversion client to use this
[ERROR] working copy.


However, my svn command-line client is version 1.7.4. (I only use the
command line, not any other IDE-integrated tools, not Subclipse, etc.)
(I'm on Mac OS X Lion.) Is the svn command-line client that I'm
calling not the same that MVN SCM would be using?
The error only occurs in the OMOD section, not the API or the main.

This is the error/log:

[INFO] Reactor Summary:healthcare
[INFO]
[INFO] Rest Web Services ................................. SUCCESS [0.293s]
[INFO] Rest Web Services API ............................. SUCCESS [4.558s]
[INFO] Rest Web Services OMOD ............................ FAILURE [2.022s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.725s
[INFO] Finished at: Fri Apr 13 02:41:27 CST 2012
[INFO] Final Memory: 11M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on
project webservices.rest-omod: Cannot get the revision information
from the scm repository :
[ERROR] Exception while executing SCM command. svn: The path
'/Users/myuser/Projects/healthcare/openmrs-modules/webservices.rest'
appears to be part of a Subversion 1.7 or greater
[ERROR] working copy. Please upgrade your Subversion client to use this
[ERROR] working copy.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :webservices.rest-omod


Checking svn client version:

MacBookPro:webservices.rest myuser$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.7.4.

I've searched for this issue on StackOverflow before and found two
related threads, but not a answer for my case.

http://stackoverflow.com/questions/7887395/svn-1-7-1-issue
http://stackoverflow.com/questions/7893396/subversion-client-version-confusion

Ben Wolfe

unread,
Apr 12, 2012, 11:01:58 PM4/12/12
to d...@openmrs.org
I would guess it has something to do with the buildnumber plugin not liking 1.7+ layout. 
http://mojo.codehaus.org/buildnumber-maven-plugin

You could take that out temporarily so you can build.  Some quick googling didn't give me an answer for you.

Ben

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to LIST...@LISTSERV.IUPUI.EDU with "SIGNOFF openmrs-devel-l" in the  body (not the subject) of your e-mail.

[mailto:LIST...@LISTSERV.IUPUI.EDU?body=SIGNOFF%20openmrs-devel-l]

Mathias Lin | Meta Healthcare

unread,
Apr 12, 2012, 11:52:07 PM4/12/12
to d...@openmrs.org
Thanks Ben, that solves it temporarily. Can build now.

> ________________________________
> Click here to unsubscribe from OpenMRS Developers' mailing list

Mathias Lin | Meta Healthcare

unread,
Apr 13, 2012, 12:16:10 AM4/13/12
to d...@openmrs.org
Seems that 1.7 support has just been added to the
buildnumber-maven-plugin on 31.3.12,
http://markmail.org/message/metpewfasfmls3uw
so it's not yet in the latest buildnumber-maven-plugin version.


On Fri, Apr 13, 2012 at 11:01 AM, Ben Wolfe <b...@openmrs.org> wrote:

> ________________________________
> Click here to unsubscribe from OpenMRS Developers' mailing list

Saptarshi Purkayastha

unread,
Apr 13, 2012, 4:23:48 AM4/13/12
to d...@openmrs.org
I've been following this upgrade from sometime now and the easiest way now is to use the command line svn client.
Buildnumber plugin will automatically use the command client if you have installed that and will allow the build to run fine

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE

Mathias Lin

unread,
Apr 13, 2012, 4:46:34 AM4/13/12
to d...@openmrs.org
Hi Saptarshi, I'm only using the svn command line client already. It doesn't work. (svn client 1.7.4, Mac OS X).
Are you referring to building the webservices.rest module (using buildnumber-maven-plugin 1.0 ?)?

Saptarshi Purkayastha

unread,
Apr 13, 2012, 4:50:52 AM4/13/12
to d...@openmrs.org
You would have to remove the following from pom.xml:
<providerImplementations>
               <svn>javasvn</svn>
</providerImplementations> 


---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


Mathias Lin

unread,
Apr 13, 2012, 5:10:23 AM4/13/12
to d...@openmrs.org
Oh ok, I see what you mean. I had removed the entire buildnumber-maven-plugin plugin before, but javasvn would already do, and I'd still get my version number generated. Got it. Thanks!

Saptarshi Purkayastha

unread,
May 17, 2012, 8:06:16 AM5/17/12
to d...@openmrs.org
With SVNKit 1.7.4 released, which supports SVN 1.7 format, the solution that I've been recommended by the developers of the buildnumber plugin is to use:

<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0</version>
<dependencies>
    <dependency>
         <groupId>org.tmatesoft.svnkit</groupId>
         <artifactId>svnkit</artifactId>
         <version>1.7.4-v1</version>
    </dependency>
</dependencies>

After this, even if you do not have the svn client installed, it should build find using the javasvn thing...
Should I commit this to the pom.xml for the webservices.rest and trunk

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


Friedman, Roger (CDC/CGH/DGHA) (CTR)

unread,
May 18, 2012, 7:11:49 AM5/18/12
to d...@openmrs.org

Saptarshi --

I think this is due to your setup.  I am running svn 1.6 and have none of the problems you have identified.  I would say do not commit.

Saludos, Roger

Reply all
Reply to author
Forward
0 new messages