You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Laird Nelson <lj...@gmail.com> on 2011/09/26 20:58:29 UTC

Question about SCM and maven-release-plugin

What should the scm element contain so that the maven-release-plugin will
work properly?

I have seen people's projects have scm stanzas like this:

<scm>
    <connection>scm:svn:https://whatever.com/whatever/trunk</connection>
    <developerConnection>scm:svn:https://whatever.com/whatever/trunk
</developerConnection>
  </scm>

...and I've seen the same without the trunk:

<scm>
    <connection>scm:svn:https://whatever.com/whatever</connection>
    <developerConnection>scm:svn:https://whatever.com/whatever
</developerConnection>
  </scm>

If one is using Subversion, should one append the branch/trunk name to the
scm element, or should one only specify the repository root?

Thanks,
Laird

-- 
http://about.me/lairdnelson

Re: Question about SCM and maven-release-plugin

Posted by Dennis Lundberg <de...@apache.org>.
On 2011-09-26 20:58, Laird Nelson wrote:
> What should the scm element contain so that the maven-release-plugin will
> work properly?
> 
> I have seen people's projects have scm stanzas like this:
> 
> <scm>
>     <connection>scm:svn:https://whatever.com/whatever/trunk</connection>
>     <developerConnection>scm:svn:https://whatever.com/whatever/trunk
> </developerConnection>
>   </scm>
> 
> ...and I've seen the same without the trunk:
> 
> <scm>
>     <connection>scm:svn:https://whatever.com/whatever</connection>
>     <developerConnection>scm:svn:https://whatever.com/whatever
> </developerConnection>
>   </scm>
> 
> If one is using Subversion, should one append the branch/trunk name to the
> scm element, or should one only specify the repository root?

You should add trunk or branch + branch-name.

> Thanks,
> Laird
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Question about SCM and maven-release-plugin

Posted by Olivier Lamy <ol...@apache.org>.
Hello,

2011/9/26 Laird Nelson <lj...@gmail.com>:
> What should the scm element contain so that the maven-release-plugin will
> work properly?
>
> I have seen people's projects have scm stanzas like this:
>
> <scm>
>    <connection>scm:svn:https://whatever.com/whatever/trunk</connection>
>    <developerConnection>scm:svn:https://whatever.com/whatever/trunk
> </developerConnection>
>  </scm>

Sounds good if you correctly use the standard svn layout.
Always use what svn info output.
And with that release plugin [1] will calculate magically the correct
tag url to use
>
> ...and I've seen the same without the trunk:
>
> <scm>
>    <connection>scm:svn:https://whatever.com/whatever</connection>
>    <developerConnection>scm:svn:https://whatever.com/whatever
> </developerConnection>
>  </scm>
>
> If one is using Subversion, should one append the branch/trunk name to the
> scm element, or should one only specify the repository root?
>
> Thanks,
> Laird
>
> --
> http://about.me/lairdnelson
>



-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

[1] http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagBase

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Question about SCM and maven-release-plugin

Posted by Laird Nelson <lj...@gmail.com>.
2011/9/27 Frédéric Conrotte <Fr...@victorbuckservices.com>

> See this post for more infos:
>
> http://stackoverflow.com/questions/6336340/with-the-maven-release-plugin-how-to-branch-a-module-and-its-children
>

Thanks to all posters here!  General rule I'm taking away is: use svn info
(if you're using Subversion).

Best,
Laird

-- 
http://about.me/lairdnelson

RE: Question about SCM and maven-release-plugin

Posted by Frédéric Conrotte <Fr...@victorbuckservices.com>.
See this post for more infos:
http://stackoverflow.com/questions/6336340/with-the-maven-release-plugin-how-to-branch-a-module-and-its-children


-----Original Message-----
From: Laird Nelson [mailto:ljnelson@gmail.com] 
Sent: 26 September 2011 20:58
To: Maven Users List
Subject: Question about SCM and maven-release-plugin

What should the scm element contain so that the maven-release-plugin will
work properly?

I have seen people's projects have scm stanzas like this:

<scm>
    <connection>scm:svn:https://whatever.com/whatever/trunk</connection>
    <developerConnection>scm:svn:https://whatever.com/whatever/trunk
</developerConnection>
  </scm>

...and I've seen the same without the trunk:

<scm>
    <connection>scm:svn:https://whatever.com/whatever</connection>
    <developerConnection>scm:svn:https://whatever.com/whatever
</developerConnection>
  </scm>

If one is using Subversion, should one append the branch/trunk name to the
scm element, or should one only specify the repository root?

Thanks,
Laird

-- 
http://about.me/lairdnelson