Package org.jboss.shrinkwrap.resolver.impl.maven.bootstrap

Examples of org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenRepositorySystem


    @Test
    public void shouldGiveNewIndependentRepositories() throws NoSuchFieldException, IllegalAccessException {
        // given
        final String initialId = "id";
        RemoteRepository remoteRepository = new RemoteRepository.Builder(initialId, "type", "url").build();
        final MavenModelResolver mavenModelResolver = new MavenModelResolver(new MavenRepositorySystem(), null,
            Arrays.asList(remoteRepository));

        // when
        final MavenModelResolver mavenModelResolverCopy = (MavenModelResolver) mavenModelResolver.newCopy();
        remoteRepository = new RemoteRepository.Builder(remoteRepository).setId("otherId").build();
View Full Code Here


    // make sure that programmatic call to offline method is always preserved
    private Boolean programmaticOffline;

    public MavenWorkingSessionImpl() {
        this.system = new MavenRepositorySystem();
        this.settings = new MavenSettingsBuilder().buildDefaultSettings();
        this.remoteRepositories = new ArrayList<RemoteRepository>();
        this.additionalRemoteRepositories = new ArrayList<RemoteRepository>();
        // get session to spare time
        this.session = system.getSession(settings, useLegacyLocalRepository);
View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.resolver.impl.maven.bootstrap.MavenRepositorySystem

Copyright © 2018 www.massapicom. 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.