What dependency do I need for the Artifact and Project classes in my Mojo?

2005/11/21, Brett Porter <[EMAIL PROTECTED]>:
>
> On 11/21/05, Wim Deblauwe <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm writing a custom plugin and I need to copy the project's
> dependencies
> > from the local repository to a certain directory. How can I do this
> best?
>
> You should use ${project.artifacts} instead which includes all the
> transitive artifacts, and for which you can call artifact.getFile().
>
> Make sure you include @requiresDependencyResolution
>
> > question 2:
> > When my plugin works, it will produce a different artifact (.msm), how
> > should I handle the 'instal' and 'deploy' of that artifact? Do I need to
> > write my own custom mojo for that or can I re-use the plugins already
> > written for .jar files?
>
> You can reuse the mojos, but you will still need to define the
> customisations, which will require a plugin. There are examples in the
> "introduction to the build lifecycle".
>
> Cheers,
> Brett
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to