execution testProperties of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6:testProperties failed in Eclipse

52 views
Skip to first unread message

Csaba Kozák

unread,
Jun 16, 2015, 4:42:06 PM6/16/15
to maven-androi...@googlegroups.com
Hi!

I pulled the changes, and it seems m2e cannot work with the new pom for me. An error marker is added in the POM:

Execution testProperties of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6:testProperties failed: Unable to load the mojo 'testProperties' (or one of its required components) from the plugin 'io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6' (io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6:testProperties:testProperties:process-test-resources)

org.apache.maven.plugin.PluginExecutionException: Execution testProperties of goal io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6:testProperties failed: Unable to load the mojo 'testProperties' (or one of its required components) from the plugin 'io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6'
    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:176)
    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:176)
    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:176)
    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:734)
    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:299)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.apache.maven.plugin.PluginContainerException: Unable to load the mojo 'testProperties' (or one of its required components) from the plugin 'io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6'
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:579)
    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: io.takari.maven.plugins:takari-lifecycle-plugin:1.11.6:testProperties
    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:546)
    ... 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


I am using   Takari Build Lifecycle support 0.1.0.201505210301 and m2e   1.6.0.20150526-2030 (latest AFAIK).

Manfred Moser

unread,
Jun 16, 2015, 6:58:08 PM6/16/15
to maven-androi...@googlegroups.com
I got the same versions. What are you doing to see that problem?

Also what else is installed? Did you use this http://takari.io/book/40-lifecycle.html#installing-eclipse-m2e-integration ?
> --
> You received this message because you are subscribed to the Google Groups "Maven Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to maven-android-deve...@googlegroups.com <mailto:maven-android-deve...@googlegroups.com> .
> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout> .

Csaba Kozák

unread,
Jun 17, 2015, 5:28:44 AM6/17/15
to maven-androi...@googlegroups.com
OK, it seems my Eclipse was broken by the lots of plugin installs and updates...

I installed a fresh Eclipse Mars RC3 for Java developers distribution. Then imported the project, and let m2e discovery install the required connectors. Everything seems to be working now. Except the maven junit luanch, which maybe has a bug:


java.lang.NoSuchMethodError: org.eclipse.m2e.internal.launch.MavenLaunchUtils.getBundleEntry(Lorg/osgi/framework/Bundle;Ljava/lang/String;)Ljava/lang/String;
    at com.ifedorenko.m2e.mavendev.internal.launching.MavenITLaunchDelegate.getBundleEntries(MavenITLaunchDelegate.java:182)
    at com.ifedorenko.m2e.mavendev.internal.launching.MavenITLaunchDelegate.getTestClasspath(MavenITLaunchDelegate.java:211)
    at com.ifedorenko.m2e.mavendev.internal.launching.MavenITLaunchDelegate.getVMArguments(MavenITLaunchDelegate.java:133)
    at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.collectExecutionArguments(JUnitLaunchConfigurationDelegate.java:280)
    at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:141)
    at com.ifedorenko.m2e.mavendev.internal.launching.MavenITLaunchDelegate.launch(MavenITLaunchDelegate.java:98)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Reply all
Reply to author
Forward
0 new messages