Search in sources :

Example 6 with MavenRepository

use of aQute.maven.provider.MavenRepository in project bnd by bndtools.

the class PomRepositoryTest method testPomNotTransitive.

public void testPomNotTransitive() throws Exception {
    MavenRepository mr = getRepo();
    Revision revision = Program.valueOf("org.apache.aries.blueprint", "org.apache.aries.blueprint.cm").version("1.0.8");
    Traverser t = new Traverser(mr, new HttpClient(), Processor.getExecutor(), false).revision(revision);
    Map<Archive, Resource> value = t.getResources().getValue();
    assertEquals(1, value.size());
    assertAllBndCap(value);
}
Also used : Archive(aQute.maven.api.Archive) MavenRepository(aQute.maven.provider.MavenRepository) Revision(aQute.maven.api.Revision) HttpClient(aQute.bnd.http.HttpClient) Resource(org.osgi.resource.Resource)

Aggregations

MavenRepository (aQute.maven.provider.MavenRepository)6 HttpClient (aQute.bnd.http.HttpClient)4 Revision (aQute.maven.api.Revision)3 MavenBackingRepository (aQute.maven.provider.MavenBackingRepository)3 Resource (org.osgi.resource.Resource)3 Workspace (aQute.bnd.build.Workspace)2 Archive (aQute.maven.api.Archive)2 File (java.io.File)2 BridgeRepository (aQute.bnd.osgi.repository.BridgeRepository)1 XMLResourceParser (aQute.bnd.osgi.repository.XMLResourceParser)1 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1