jira-importer commented on issue #929:
URL: https://github.com/apache/maven-scm/issues/929#issuecomment-2964633684

   **[Robert 
Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)**
 commented
   
   I did some digging and found this:
   
   ```
       /**
        * {@inheritDoc}
        */
       public ScmProvider getProviderByType( String providerType )
           throws NoSuchScmProviderException
       {
           if ( logger == null )
           {
               logger = getScmLogger();
   
               for ( Entry<String, ScmProvider> entry : scmProviders.entrySet() 
)
               {
                   ScmProvider p = entry.getValue();
   
                   p.addListener( logger );
               }
           }
   
           String usedProviderType = System.getProperty( "maven.scm.provider." 
+ providerType + ".implementation" );
   
           if ( usedProviderType == null )
           {
               if ( userProviderTypes.containsKey( providerType ) )
               {
                   usedProviderType = userProviderTypes.get( providerType );
               }
               else
               {
                   usedProviderType = providerType;
               }
           }
   
           ScmProvider scmProvider = scmProviders.get( usedProviderType );
   
           if ( scmProvider == null )
           {
               throw new NoSuchScmProviderException( usedProviderType );
           }
   
           return scmProvider;
       }
   ```
   
   So it looks like the mechanism is already there. In fact this is a 
better/more global solution than the `svn-settings.xml`. I haven't tried it 
yet, but it shouldn't be too hard to experiment with this yourself.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to