Hi, I tried what you said but I'm still getting the same thing. I tried it with -U first and it reported that it couldn't find the eclipse plugin. I then deleted my entire local repository and ran mvn eclipse:eclipse but it still came up with the same error. i.e:
java.lang.NoSuchMethodError: org.apache.maven.artifact.factory.ArtifactFactory.c reateDependencyArtifact I have the latest maven-eclipse-plugin-2.2.jar in my repository. Hmm... I'm very confused and frustrated, Andy On 05/10/06, Tom Huybrechts <[EMAIL PROTECTED]> wrote:
It looks like the maven-eclipse-plugin is using the wrong version of one of the maven libraries. I'd try running with '-U' or cleaning out the org/apache/maven/maven-artifact part of my repository. On 10/5/06, Andrew Birchall <[EMAIL PROTECTED]> wrote: > > Hi, I'm a new user of Maven 2 so please excuse the noddy nature of this > problem. > > I have created a very simple Maven Java project with two classes and > App.class and AppTest.class and a very simple pom.xml that was created > with the Artifact project creation process. > > I am trying to create an Eclipse project from this pom using mvn > eclipse:eclipse > > I have successfully run > mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo > > However when I run mvn eclipse:eclipse I get the following error: > > [INFO] Preparing eclipse:eclipse > [INFO] No goals needed for project - skipping > [INFO] [eclipse:eclipse] > [INFO] > ------------------------------------------------------------------------- > --- > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] > org.apache.maven.artifact.factory.ArtifactFactory.createDependencyArtifac > > t(Ljava/lang/String;Ljava/lang/String;Lorg/apache/maven/artifact/versioning/Vers > > ionRange;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lorg/apache/mav > en/artifact/Artifact; > [INFO] > ------------------------------------------------------------------------- > --- > [INFO] Trace > java.lang.NoSuchMethodError: > org.apache.maven.artifact.factory.ArtifactFactory.c > > reateDependencyArtifact(Ljava/lang/String;Ljava/lang/String;Lorg/apache/maven/ar > > tifact/versioning/VersionRange;Ljava/lang/String;Ljava/lang/String;Ljava/lang/St > ring;Z)Lorg/apache/maven/artifact/Artifact; > at > org.apache.maven.plugin.ide.AbstractIdeSupportMojo.getProjectArtifact > s(AbstractIdeSupportMojo.java:550) > at > org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolu > tion(AbstractIdeSupportMojo.java:425) > at org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute > (AbstractId > eSupportMojo.java:378) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo > (DefaultPlugi > nManager.java:399) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa > ultLifecycleExecutor.java:519) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone > Goal(DefaultLifecycleExecutor.java:482) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal > (Defau > ltLifecycleExecutor.java:452) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan > dleFailures(DefaultLifecycleExecutor.java:301) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen > ts(DefaultLifecycleExecutor.java:268) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute > (DefaultLi > fecycleExecutor.java:137) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl. > java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode( > Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > As fa as I can tell, this should just work. Unless I'm missing something? > Can anybody tell me what is causing the problem? > Thanks a lot > Andy Birchall > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
