maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: maven3 - getting error on mvn dependency:tree command
Date Sun, 19 May 2013 15:24:39 GMT
can you give us the result of "mvn -version"?

Regards,

Hervé

Le vendredi 17 mai 2013 11:49:07 coolguy a écrit :
> I've a project that uses maven 3. I get the following error when I run mvn
> dependency:tree command. Could someone advise why would I get this error?
> 
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-dependency-plugin:2.7:tree (default-cli) on
> project : Cannot build project dependency graph:
> org.apache.maven.project.MavenProject.getProjectBuildingRequest() -> [Help
> 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-dependency-plugin:2.7:tree (default-cli)
> on project wesp-dgw: Cannot build project dependency graph
>     at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
> 03) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 48) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 40) at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:84) at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
> cycleModuleBuilder.java:59) at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
> ecycleStarter.java:183) at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
> r.java:161) at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at
> org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
>     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.ja
> va: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)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot build
> project dependency graph
>     at
> org.apache.maven.plugin.dependency.TreeMojo.execute(TreeMojo.java:233)
>     at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPl
> uginManager.java:107) at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
> 95) ... 19 more
> Caused by:
> org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException:
> org.apache.maven.project.MavenProject.getProjectBuildingRequest()
>     at
> org.apache.maven.shared.dependency.graph.internal.Maven3DependencyGraphBuild
> er.buildDependencyGraph(Maven3DependencyGraphBuilder.java:92) at
> org.apache.maven.shared.dependency.graph.internal.DefaultDependencyGraphBuil
> der.buildDependencyGraph(DefaultDependencyGraphBuilder.java:63) at
> org.apache.maven.plugin.dependency.TreeMojo.execute(TreeMojo.java:216)
>     ... 21 more
> Caused by: java.lang.NoSuchMethodException:
> org.apache.maven.project.MavenProject.getProjectBuildingRequest()
>     at java.lang.Class.getMethod(Class.java:1605)
>     at
> org.apache.maven.shared.dependency.graph.internal.Maven3DependencyGraphBuild
> er.invoke(Maven3DependencyGraphBuilder.java:99) at
> org.apache.maven.shared.dependency.graph.internal.Maven3DependencyGraphBuild
> er.buildDependencyGraph(Maven3DependencyGraphBuilder.java:68) ... 23 more
> 
> 
> 
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/maven3-getting-error-on-mvn-dependency-tre
> e-command-tp5756424.html Sent from the Maven - Users mailing list archive at
> Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message