  @Test
  public void testVersionlessDependency() throws Exception {

    File basedir = resources.getBasedir();
    MavenProject project = maven.readMavenProject(basedir);
    maven.newDependency(temp.newFile()).setGroupId("g").setArtifactId("a").setVersion("1").addTo(project);

    MavenSession mavenSession = maven.newMavenSession(project);
    RepositorySystemSession repoSession = mavenSession.getRepositorySession();
    SimpleReactorReader.builder() //
        .addArtifact("g:a:1", temp.newFile()) //
        .addArtifact("g:a:pom:1", temp.newFile()) //
        .toSession(repoSession);

    ProcessorpathResolver resolver = maven.lookup(ProcessorpathResolver.class);
    List<File> processorpath = resolver.resolve(repoSession, project, dependencies("g:a"));

    assertEquals(1, processorpath.size());
    assertTrue(processorpath.get(0).isFile());
  }