You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ken Liu <ke...@gmail.com> on 2008/04/07 23:37:56 UTC

read scm connection url using svn info?

Hi all -

Is there any way that the scm connection URL can automatically be read using
"svn info" instead of putting it into the pom?

For example, instead of writing:

<scm>
        <connection>scm:svn:http://my.svn.server/trunk</connection>
</scm>

You could just write something like:
 <scm>
        <connection>scm:svn:auto</connection>
</scm>

and then the maven svn impl could just execute "svn info" and extract the
URL string from the output.  This would be very handy because you would
never have to worry about whether the scm url is correct in the POM, in case
the POM file is moved or copied/tagged in the repo.

Ken