Package org.eclipse.aether.repository.RemoteRepository

Examples of org.eclipse.aether.repository.RemoteRepository.Builder.build()


      AuthenticationBuilder authBuilder = new AuthenticationBuilder().addUsername(username);
      if (password != null)
        authBuilder.addPassword(password);
      builder.setAuthentication(authBuilder.build());
    }
    remoteRepo = builder.build();
    localRepo = new LocalRepository(new File(cacheDir, "aether-local"));
   
    // Initialise Index
    if (indexUri == null) {
      indexedRepo = null;
View Full Code Here


        for (RemoteRepository r : this.additionalRemoteRepositories) {
            if (r.getId().equals(repository.getId())) {
                this.additionalRemoteRepositories.remove(r);
            }
        }
        this.additionalRemoteRepositories.add(builder.build());
    }

    // ------------------------------------------------------------------------
    // local implementation methods
View Full Code Here

        Builder repo = new Builder(id, "default", url);
        // disable snapshots
        repo.setSnapshotPolicy( new RepositoryPolicy( false, null, null ) );
        // ebable releases
        repo.setReleasePolicy( null );
        repos.add( repo.build() );
    }
   
    public void addSnapshotRepository(String id, String url){
        // only repositories with "default" layout
        Builder repo = new Builder(id, "default", url);
View Full Code Here

        Builder repo = new Builder(id, "default", url);
        // enable snapshots
        repo.setSnapshotPolicy( null );
        // disable releases
        repo.setReleasePolicy( new RepositoryPolicy( false, null, null ) );
        repos.add( repo.build() );
    }

    public void resolve() throws DependencyCollectionException, DependencyResolutionException {
        if (dependencies.size() == 0){
            throw new IllegalArgumentException("no artifacts given");
View Full Code Here

            }
            Proxy proxy = settings.getProxySelector().getProxy( r );if ( proxy != null )
            {
                Builder builder = new RemoteRepository.Builder( r );
                builder.setProxy( proxy );
                r = builder.build();
            }
            collectRequest.addRepository( r );           
        }
               
        this.node = repoSystem.collectDependencies( getSession(), collectRequest ).getRoot();
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.