Assuming the plugin has been released, you have two options:
1. Specify the plugin version in your pom.
2. Use the "full" name of the plugin on the command line:
mvn groupId:artifactId:version:goal eg
mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5:tree

Unfortunately, this plugin version is still in development, so this is
not sufficient. You can see the latest versions here:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/

If you must use this new version, you will need to add the Apache
snapshot repo to your pom or settings.xml, or pull the code from SVN
and build/install it locally.

Wayne

On 11/27/07, bryan ward <[EMAIL PROTECTED]> wrote:
>
> I looked in my local repository and it currently has version 2.0-alpha-4 of
> the dependency plugin.  Do you know how A) it chose to use 2.0-alpha-4 and
> B) how do I change it to use alpha-5 (or the latest available).
>
> Thanks!
>
> Bryan
>
>
>
> dennisl-2 wrote:
> >
> > You need at least version 2.0-alpha-5 of the dependency-plugin. The tree
> > goal was introduced in that version as indicated here:
> >
> > http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html
> >
> > bryan ward wrote:
> >> Hi,
> >>
> >> I would like to run some of the dependency goals listed in the
> >> documentation
> >>
> >> http://maven.apache.org/plugins/maven-dependency-plugin/
> >>
> >> however when I do, I get an error stating that the goal cannot be found?
> >> Does anyone know why this is?
> >>
> >>
> >> /cygdrive/c/hasdev/servicesImpl$ mvn -e dependency:tree
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'dependency'.
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Required goal not found: dependency:tree
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.BuildFailureException: Required goal not found:
> >> dependency:tree
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExe
> >> cutor.java:1538)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(Def
> >> aultLifecycleExecutor.java:386)
> >>         at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
> >> :138)
> >>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> >>         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: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)
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: < 1 second
> >> [INFO] Finished at: Tue Nov 27 11:14:47 MST 2007
> >> [INFO] Final Memory: 2M/4M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >>
> >>
> >
> >
> > --
> > Dennis Lundberg
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/dependency%3Atree-not-working-in-maven-2.0.7-tf4883555s177.html#a13979033
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to