Package org.eclipse.aether.util.repository

Examples of org.eclipse.aether.util.repository.AuthenticationBuilder.addPassword()


        Settings settings = getSettings();
        for ( org.apache.maven.settings.Proxy proxy : settings.getProxies() )
        {
            AuthenticationBuilder auth = new AuthenticationBuilder();
            auth.addUsername( proxy.getUsername() );
            auth.addPassword( proxy.getPassword() );

            selector.add( new Proxy( proxy.getProtocol(), proxy.getHost(),
                                     proxy.getPort(), auth.build() ),
                          proxy.getNonProxyHosts() );
        }
View Full Code Here


        Settings settings = getSettings();
        for ( Server server : settings.getServers() )
        {
            AuthenticationBuilder auth = new AuthenticationBuilder();
            auth.addUsername( server.getUsername() );
            auth.addPassword( server.getPassword() );
            auth.addPrivateKey( server.getPrivateKey(), server.getPassphrase() );
            selector.add( server.getId(), auth.build() );
        }

        return new ConservativeAuthenticationSelector( selector );
View Full Code Here

        final String userInfo = u.getUserInfo();
        if ( userInfo != null &&  userInfo.contains( ":" ) )
        {
            int i = userInfo.indexOf(':');
            authentication.addUsername( userInfo.substring( 0, i ) );
            authentication.addPassword( userInfo.substring( i + 1 ) );
        }
        settings.addProxy( new Proxy( u.getProtocol(), u.getHost(), u.getPort(), authentication.build() ) );
    }

    public void addArtifact( String coordinate ){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.