Trying to get the svn version of another directory

34 views
Skip to first unread message

RunX

unread,
Jan 28, 2011, 6:37:11 AM1/28/11
to maven-svn-revision-number-plugin
Hello,

I'm using the plug-in on an exported directory and therefore it can
not retrieve the SVN version for this directory.
I tried to use the "path" parameter but it did not help.
This is what I see when using it :
[INFO] inspecting C:\testpom\test <--- the current
working directory
[INFO] inspecting C:\code\samplecode <--- the path variable

The output file is always the same:
repository =
path =
revision = -1
mixedRevisions = false
committedRevision = -1
committedDate =
status = ?
specialStatus = u


Thank you,
Omer

Oleg Estekhin

unread,
Jan 28, 2011, 6:56:31 AM1/28/11
to maven-svn-revisi...@googlegroups.com
Hi

Exported directory does not contain any svn-related information. It is a
"clean" snapshot of the svn repository at the time when the export was done,
so no tool (including the standard command line svn utility) can retrieve
any svn-related information from it.

-----Исходное сообщение-----
From: RunX
Sent: Friday, January 28, 2011 2:37 PM
To: maven-svn-revision-number-plugin
Subject: Trying to get the svn version of another directory

RunX

unread,
Jan 28, 2011, 7:33:26 AM1/28/11
to maven-svn-revision-number-plugin
Hi,

Thanks for the fast reply.
I know that this folder is clean , this is why I wanted to use the
"path" param - so the module will inspect a different directory.
But it did not seem to work.

Thanks,
Omer

oleg.e...@gmail.com

unread,
Jan 28, 2011, 8:28:20 AM1/28/11
to maven-svn-revision-number-plugin
If m-svn-revision-number-p says that some path is not under the
version control then that path is not under the version control - the
SVNKit library i use to work with svn is that good and solid so i can
be that confident =)

Try to run the maven with the debug output enabled (run "mvn -X
com.google.code.maven-svn-revision-number-plugin:maven-svn-revision-
number-plugin:revision" from the command line in the same directory
where your pom is located). The output will contain a lot of
additional information from the maven core, but near the end there
will be some additional information from the m-svn-revision-number-p.
Reply all
Reply to author
Forward
0 new messages