maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Hansson <>
Subject Re: Maven Server matching
Date Sat, 11 Jun 2016 07:11:30 GMT
Ok, so adding <serverId> to <scm> section in POM would be an acceptable path to
a solution?

Consider the following:
        <!-- optional -->        <serverId>bitbucket-ambiance</serverId> 

and then in settings.xml you would have
<servers>    <server>      <id>bitbucket-ambiance</id>     
<username>john</username>      <password>67yhswpc</password
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. 


    On Thursday, June 9, 2016 9:31 AM, Andreas Sewe <>


> 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*
(<$USER/$REPO.git>), not just the same host.

Best wishes,


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message