maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch" <>
Subject Re: own plugin without need for pom.xml
Date Tue, 18 Dec 2007 04:40:35 GMT
On 15/12/2007, Peter Fischer <> wrote:
> Hello,
> next question? ;)
> The DeployFileMojo uses a method getDeployer() of the AbstractDeployMojo
> class;
> I also tried to extend the AbstractDeployMojo class, but now getDeployer()
> returns only null.
> What do I wrong?

are you patching a local copy of the deploy plugin? (ie. you checked out the
deploy plugin source and have added your new mojo to the source folder...)

If not then you're probably hitting:
in your case the ArtifactDeployer @component is probably not being injected

best option is to build your mojo as part of the deploy plugin - use a
or branch the version in the pom (this also makes it easier to contribute

alternatively, where this isn't possible, you could consider:

but I think it your case, it makes sense to work directly with the deploy

> Peter
> --
> View this message in context:
> Sent from the Maven - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Cheers, Stuart

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message