Search in sources :

Example 11 with Revision

use of aQute.maven.api.Revision 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

Revision (aQute.maven.api.Revision)11 Archive (aQute.maven.api.Archive)6 File (java.io.File)6 Program (aQute.maven.api.Program)5 MavenRepository (aQute.maven.provider.MavenRepository)3 Resource (org.osgi.resource.Resource)3 HttpClient (aQute.bnd.http.HttpClient)2 XMLResourceParser (aQute.bnd.osgi.repository.XMLResourceParser)1 MavenVersion (aQute.bnd.version.MavenVersion)1 Release (aQute.maven.api.Release)1 POM (aQute.maven.provider.POM)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 URI (java.net.URI)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Properties (java.util.Properties)1