Skip to content

Commit

Permalink
fix more cases of `Bndtools does not show bundles in dependencyManage…
Browse files Browse the repository at this point in the history
…ment`

fixes #3458

Signed-off-by: Raymond Augé <[email protected]>

Signed-off-by: BJ Hargrave <[email protected]>
  • Loading branch information
rotty3000 authored and bjhargrave committed Oct 28, 2019
1 parent f478803 commit 7f9d9ec
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,14 @@ protected void createRepo(IMavenProjectFacade projectFacade, IProgressMonitor mo
lookupComponent(org.apache.maven.artifact.factory.ArtifactFactory.class),
lookupComponent(RepositorySystem.class));

MavenExecutionPlan plan = maven.calculateExecutionPlan(mavenProject,
Collections.singletonList("bnd-resolver:resolve"),
true, monitor);
List<String> tasks = mavenProject.getPlugin("biz.aQute.bnd:bnd-resolver-maven-plugin")
.getExecutionsAsMap()
.keySet()
.stream()
.map(executionId -> "bnd-resolver:resolve@" + executionId)
.collect(Collectors.toList());

MavenExecutionPlan plan = maven.calculateExecutionPlan(mavenProject, tasks, true, monitor);
MojoExecution mojoExecution = plan.getMojoExecutions()
.stream()
.filter(exe -> containsBndrun(exe, mavenProject, monitor))
Expand Down

0 comments on commit 7f9d9ec

Please sign in to comment.