Skip to content

Commit

Permalink
[m2e] Bndtools does not show bundles in dependencyManagement
Browse files Browse the repository at this point in the history
fixes #3458

Signed-off-by: Raymond Augé <raymond.auge@liferay.com>

Signed-off-by: BJ Hargrave <bj@bjhargrave.com>
  • Loading branch information
rotty3000 authored and bjhargrave committed Oct 18, 2019
1 parent ea513e2 commit f478803
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.util.stream.Collectors;

import org.apache.maven.execution.MavenSession;
import org.apache.maven.lifecycle.MavenExecutionPlan;
import org.apache.maven.plugin.MojoExecution;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.ProjectDependenciesResolver;
Expand Down Expand Up @@ -160,8 +161,10 @@ protected void createRepo(IMavenProjectFacade projectFacade, IProgressMonitor mo
lookupComponent(org.apache.maven.artifact.factory.ArtifactFactory.class),
lookupComponent(RepositorySystem.class));

MojoExecution mojoExecution = projectFacade
.getMojoExecutions("biz.aQute.bnd", "bnd-resolver-maven-plugin", monitor, "resolve")
MavenExecutionPlan plan = maven.calculateExecutionPlan(mavenProject,
Collections.singletonList("bnd-resolver:resolve"),
true, monitor);
MojoExecution mojoExecution = plan.getMojoExecutions()
.stream()
.filter(exe -> containsBndrun(exe, mavenProject, monitor))
.findFirst()
Expand Down

0 comments on commit f478803

Please sign in to comment.