Problem using buildnumber-maven-plugin in IDEA

Hi,

I'm trying to use the Maven's buildnumber-maven-plugin to get a usable build number in our artifacts.
It works with command line, but produce an error when I run it inside IDEA with a Maven configuration:

+ Enabling strict checksum verification on all artifact downloads.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building <project>
[INFO]    task-segment: [jetty:run-exploded]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run-exploded
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
Provider message:
The svn command failed.
Command output:
svn: This client is too old to work with working copy '.'; please get a newer Subversion client

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot get the revision information from the scm repository :
Error!


Could it be that it's using the Java SVN client and that it simply doesn't procude a 'svn info' result suitable for buildnumber-maven-plugin? (buildnumber-maven-plugin relies on 'svn info' to get SVN revision number)





cheers
-nodje
2 comments
Comment actions Permalink

Hello nodje,

Which version of the svn command line client do you have installed? IDEA
itself doesn't use the command line client, so it's possible that IDEA has
converted the repositories to SVN 1.5 format and your command line client
is older than 1.5.

I'm trying to use the Maven's buildnumber-maven-plugin to get a usable
build number in our artifacts.

It works with command line, but produce an error when I run it inside
IDEA with a Maven configuration:

+ Enabling strict checksum verification on all artifact downloads.
Scanning for projects...

----------------------------------------------------------------------
--
Building <project>
task-segment:

----------------------------------------------------------------------
--
Preparing jetty:run-exploded

Checking for local modifications: skipped.
Updating project files from SCM: skipped.
Provider message:
The svn command failed.
Command output:
svn: This client is too old to work with working copy '.'; please get
a newer Subversion client

----------------------------------------------------------------------
--
BUILD ERROR

----------------------------------------------------------------------
--
Cannot get the revision information from the scm repository :
Error!
Could it be that it's using the Java SVN client and that it simply
doesn't procude a 'svn info' result suitable for
buildnumber-maven-plugin? (buildnumber-maven-plugin relies on 'svn
info' to get SVNrevision number)

cheers

---
Original message URL:
http://www.jetbrains.net/devnet/message/5235424#5235424

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi,

I'm using the regular 1.5 version of command line. I mean the whole thing works from the command line, but not from an IDEA Maven config.
So I figured, it could be that IDEA is in fact using a Java client as SVN client, and that what it returns from 'svn info' could be incompatible with what builnumber-maven-plugin expect.

Doesn't seem that anyone has used builnumber-maven-plugin in IDEA yet, at least that's what I conclude form a forum search.

Is there anyway I could have a look at what IDEA SVN client implementation returns from an 'svn info' ?

The plugin is very useful to get an automatically versioned WAR with the SVN revision build. It'd be nice to get it to work within IDEA too.

cheers

0

Please sign in to leave a comment.