maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coolguy <sanke...@gmail.com>
Subject maven3 - getting error on mvn dependency:tree command
Date Fri, 17 May 2013 18:49:07 GMT
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:203)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.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.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)
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(DefaultBuildPluginManager.java:107)
    at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
    ... 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.Maven3DependencyGraphBuilder.buildDependencyGraph(Maven3DependencyGraphBuilder.java:92)
    at
org.apache.maven.shared.dependency.graph.internal.DefaultDependencyGraphBuilder.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.Maven3DependencyGraphBuilder.invoke(Maven3DependencyGraphBuilder.java:99)
    at
org.apache.maven.shared.dependency.graph.internal.Maven3DependencyGraphBuilder.buildDependencyGraph(Maven3DependencyGraphBuilder.java:68)
    ... 23 more



--
View this message in context: http://maven.40175.n5.nabble.com/maven3-getting-error-on-mvn-dependency-tree-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


Mime
View raw message