org.eclipse.aether.impl.ArtifactResolver Java Examples

The following examples show how to use org.eclipse.aether.impl.ArtifactResolver. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MavenArtifactResolvingHelper.java    From thorntail with Apache License 2.0 6 votes vote down vote up
public MavenArtifactResolvingHelper(ArtifactResolver resolver,
                                    RepositorySystem system,
                                    RepositorySystemSession session,
                                    DependencyManagement dependencyManagement) {
    this.resolver = resolver;
    this.system = system;
    this.session = session;
    this.dependencyManagement = dependencyManagement;
    this.remoteRepositories.add(buildRemoteRepository("jboss-public-repository-group",
                                                      "https://repository.jboss.org/nexus/content/groups/public/",
                                                      null,
                                                      ENABLED_POLICY,
                                                      DISABLED_POLICY));
    this.remoteRepositories.add(buildRemoteRepository("redhat-ga",
                                                      "https://maven.repository.redhat.com/ga/",
                                                      null,
                                                      ENABLED_POLICY,
                                                      DISABLED_POLICY));
}
 
Example #2
Source File: MavenArtifactResolvingHelper.java    From wildfly-swarm with Apache License 2.0 5 votes vote down vote up
public MavenArtifactResolvingHelper(ArtifactResolver resolver,
                                    RepositorySystem system,
                                    RepositorySystemSession session,
                                    Proxy proxy) {
    this.resolver = resolver;
    this.system = system;
    this.session = session;
    this.proxy = proxy;
    this.remoteRepositories.add(buildRemoteRepository("jboss-public-repository-group",
                                                      "http://repository.jboss.org/nexus/content/groups/public/",
                                                      null,
                                                      this.proxy));
}
 
Example #3
Source File: MavenArtifactResolvingHelperTest.java    From thorntail with Apache License 2.0 5 votes vote down vote up
public MavenArtifactResolvingHelperTest() {
    sessionMock = Mockito.mock(RepositorySystemSession.class);
    MirrorSelector mirrorSelectorMock = Mockito.mock(MirrorSelector.class);
    Mockito.when(sessionMock.getMirrorSelector()).thenReturn(mirrorSelectorMock);
    ProxySelector proxySelectorMock = Mockito.mock(ProxySelector.class);
    Mockito.when(sessionMock.getProxySelector()).thenReturn(proxySelectorMock);
    localRepositoryManager = Mockito.mock(LocalRepositoryManager.class);
    Mockito.when(sessionMock.getLocalRepositoryManager()).thenReturn(localRepositoryManager);
    resolver = Mockito.mock(ArtifactResolver.class);
    system = Mockito.mock(RepositorySystem.class);

}
 
Example #4
Source File: MavenArtifactResolvingHelper.java    From ARCHIVE-wildfly-swarm with Apache License 2.0 5 votes vote down vote up
public MavenArtifactResolvingHelper(ArtifactResolver resolver,
                                    RepositorySystem system,
                                    RepositorySystemSession session) {
    this.resolver = resolver;
    this.system = system;
    this.session = session;
    this.remoteRepositories.add(new RemoteRepository.Builder("jboss-public-repository-group", "default", "http://repository.jboss.org/nexus/content/groups/public/").build());
}