public static Server getServer ( final Settings settings , final String serverId ) { if ( settings == null || StringUtils . isEmpty ( serverId ) ) { return null ; } return settings . getServer ( serverId ) ; }
Get server credential from Maven settings by server Id .