Hmmm, and fixed by me along time ago :|
The question didn't ring a bell, but the answer seems to be at the right place, the FAQ :) Be aware that this is a maven-release-plugin specific fix, other related plugins need to fix this by themselves since the scm section in the pom is missing the id-element.

Robert


On Sun, 26 Jun 2016 22:00:14 +0200, Peter Hansson <[email protected]> wrote:

I can't believe no one has pointed me to the 'project.scm.id' feature which was introduced with maven-release-plugin v2.3. This is exactly what I wanted.
See :
https://issues.apache.org/jira/browse/SCM-826?focusedCommentId=15350211&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15350211


I do not find this feature particularly well-documented. The only place I could find it documented was here : http://maven.apache.org/maven-release/maven-release-plugin/faq.html#credentials and that actually didn't ring any bells with me. Perhaps my fault.


Kind regards
Peter

On Saturday, June 11, 2016 9:12 AM, Peter Hansson <[email protected]> wrote:

Ok, so adding <serverId> to <scm> section in POM would be an acceptable path to a solution?

Consider the following:
<scm>
<connection>scm:hg:https://bitbucket.org/greatness/ambiance<connection> <developerConnection>scm:hg:https://bitbucket.org/greatness/ambiance</developerConnection>
        <url>https://bitbucket.org/greatness/ambiance</url>
<!-- optional --> <serverId>bitbucket-ambiance</serverId></scm>
and then in settings.xml you would have
<servers> <server> <id>bitbucket-ambiance</id> <username>john</username> <password>67yhswpc</password
    </server>
</servers>
I find this to be least the intrusive solution and also the safest and most intuitive. If <serverId> isn't specified you would simply get today's functionality.

Peter

On Thursday, June 9, 2016 9:31 AM, Andreas Sewe <[email protected]> wrote:

 Hi,

1. Running several *different* flavours of SCMs on the same host. Say you have a host called "repohost" which is both an SVN and a Git host. Ok, not very likely, but alas not something possible today.

FYI, Github does just that. In particular, they support "git clone" and
"svn checkout" under the same *URI*
(<https://github.com/$USER/$REPO.git>), not just the same host.

Best wishes,

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to