You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bisser Peshev (JIRA)" <ji...@apache.org> on 2019/07/05 12:22:00 UTC
[jira] [Commented] (FELIX-6158) PluginExecutionException: Execution
bundle-manifest of goal org.apache.felix:maven-bundle-plugin:4.2.0:manifest
failed: Unable to load the mojo 'manifest' (or one of its required
components) from the plugin 'org.apache.felix:maven-bundle-plugin:4.2.0'
[ https://issues.apache.org/jira/browse/FELIX-6158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879188#comment-16879188 ]
Bisser Peshev commented on FELIX-6158:
--------------------------------------
Just one more thing:
If I make some changes to the pom, the problem may disappear for a while. But some time later, as I work on the project (though not on the pom itself), the problem reappears, i.e. the <execution> tag gets underlined in red and the pom (as well as the while project) gets marked with a red 'x' indicating that there are errors.
> PluginExecutionException: Execution bundle-manifest of goal org.apache.felix:maven-bundle-plugin:4.2.0:manifest failed: Unable to load the mojo 'manifest' (or one of its required components) from the plugin 'org.apache.felix:maven-bundle-plugin:4.2.0'
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FELIX-6158
> URL: https://issues.apache.org/jira/browse/FELIX-6158
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-4.2.0
> Environment: Spring Tool Suite
> Version: 3.9.5.RELEASE
> Build Id: 201807031734
> Platform: Eclipse Oxygen.3a (4.7.3a)
> Reporter: Bisser Peshev
> Priority: Major
>
> I use Spring Tool Suite
> Version: 3.9.5.RELEASE
> Build Id: 201807031734
> Platform: Eclipse Oxygen.3a (4.7.3a)
> Our project has the following in the pom:
>
> {code:java}
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>4.2.0</version>
> <extensions>true</extensions>
> <executions>
> <execution>
> <id>bundle-manifest</id>
> <phase>process-classes</phase>
> <goals>
> <goal>manifest</goal>
> </goals>
> </execution>
> </executions>
> .
> .
> .{code}
> Eclipse underlines the <execution> tag with a red squigglie and reports the following error:
> {code:java}
> Execution bundle-manifest of goal org.apache.felix:maven-bundle-plugin:4.2.0:manifest failed: Unable to load the mojo 'manifest' (or one of its required components) from the plugin 'org.apache.felix:maven-bundle-plugin:4.2.0' (org.apache.felix:maven-bundle-plugin:4.2.0:manifest:bundle-manifest:process-classes)
> org.apache.maven.plugin.PluginExecutionException: Execution bundle-manifest of goal org.apache.felix:maven-bundle-plugin:4.2.0:manifest failed: Unable to load the mojo 'manifest' (or one of its required components) from the plugin 'org.apache.felix:maven-bundle-plugin:4.2.0'
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:153)
> at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
> at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
> at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
> at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
> at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
> at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
> at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
> at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
> at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
> at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
> at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
> at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
> at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
> at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
> at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
> at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
> at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
> at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
> at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.apache.maven.plugin.PluginContainerException: Unable to load the mojo 'manifest' (or one of its required components) from the plugin 'org.apache.felix:maven-bundle-plugin:4.2.0'
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:551)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
> ... 31 more
> Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
> role: org.apache.maven.plugin.Mojo
> roleHint: org.apache.felix:maven-bundle-plugin:4.2.0:manifest
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:267)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
> ... 32 more
> Caused by: java.util.NoSuchElementException
> at org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.next(RealmFilteredBeans.java:118)
> at org.eclipse.sisu.plexus.RealmFilteredBeans$FilteredItr.next(RealmFilteredBeans.java:1)
> at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:76)
> at org.eclipse.sisu.plexus.DefaultPlexusBeans$Itr.next(DefaultPlexusBeans.java:1)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
> ... 34 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)