maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Hansson <peterhansson...@yahoo.com.INVALID>
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:
<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 <sewe@st.informatik.tu-darmstadt.de>
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org



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