Hello Stephane, - m2e is an Eclipse-plugin, *not* a Maven-plugin. - The configuration element in the pluginManagement section of pom.xml is only used to store information for the Eclipse plugin, so the Eclipse plugin knows which goals of the various not supported Maven plugin should run (or not), see http://wiki.eclipse.org/M2E_plugin_execution_not_covered - If you want to get rid of the warnings when running Maven, you may find my hack at http://stackoverflow.com/questions/7905501/get-rid-of-pom-not-found-warning-for-org-eclipse-m2elifecycle-mapping/8741403#8741403.
Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Thu, Feb 2, 2012 at 15:16, Stephane-3 <mittiprove...@yahoo.se> wrote: > I am using the m2e Maven plugin for Eclipse. > > And so I guess I cannot run the goal mvn eclipse:eclipse but should run the > goal mvn eclipse:m2eclipse > > As I was running Maven 2.2.1 and m2e requires Maven 2.4 I updated Maven. > > I could not find any 2.4 version on the download website though. > > So I downloaded and installed Maven 3.0.4 and got it running. > > But wen doing the goal eclipse:m2eclipse I get the following error: > > [ERROR] Could not find goal 'm2eclipse' in plugin > org.apache.maven.plugins:maven-eclipse-plugin:2.8 among available goals > to-maven, add-maven-repo, myeclipse-clean, configure-workspace, help, > rad-clean, install-plugins, eclipse, myeclipse, rad, clean, remove-cache, > make-artifacts -> [Help 1] > org.apache.maven.plugin.MojoNotFoundException: Could not find goal > 'm2eclipse' in plugin org.apache.maven.plugins:maven-eclipse-plugin:2.8 > among available goals to-maven, add-maven-repo, myeclipse-clean, > configure-workspace, help, rad-clean, install-plugins, eclipse, myeclipse, > rad, clean, remove-cache, make-artifacts > at > org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:267) > at > org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185) > at > org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:235) > at > org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106) > at > org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Spring-context-dependency-not-found-tp5444070p5450809.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org