Cool! That gets me one big step closer. Thanks!
Pat.
On 7/20/07, Michael Meyer <[EMAIL PROTECTED]> wrote:
Hi
if I remember rightly it should be something like this:
/**
* @requiresDependencyResolution test
*/
public class CopyDependenciesMojo extends AbstractMojo {
/**
* @parameter expression="${project.artifacts}"
* @required
*/
private Set artifacts;
}
The @requiresDependencyResolution is the important part.
Hope this helps.
Cheers, michael
Patrick Forhan schrieb:
> I don't mean to co-opt this thread for my own purpose, but I have a
> similar question: How do I get a list of depenencies in a maven
> plugin? Is there better documentation on this? I tried to read the
> assembly and dependency plugin source, but things are not very clear.
>
> I've tried something like the following in my Mojo... everything comes
> back as a basically empty instance.
>
> /**
> * One dependency.
> *
> * @parameter expression="${project.dependency}"
> */
> private Dependency dependency;
>
> /**
> * Dependency array?.
> *
> * @parameter expression="${project.dependency}"
> */
> private Dependency[] dependencies;
>
> /**
> * Dep mgr.
> *
> * @parameter expression="${project.dependencyManagement}"
> */
> private DependencyManagement dependencyMgmt;
>
> /**
> * resources?.
> *
> * @parameter expression="${project.resources}"
> */
> private List<Resource> res;
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Defy mediocrity.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]