You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wilfred Springer <wi...@agilejava.com> on 2006/05/27 20:12:55 UTC

Subclassign AbstractAntMojo

All,

I tried to subclass AbstractAntMojo for another project, and I fail to
see how to configure it correctly. I figured that either the existing
components.xml fiel in maven-antrun-plugin would be picked by the
classloader, or otherwise add a components.xml file of my own to
src/main/resources in my own file. No matter what I try, my own plugin
gets an NPE somewhere in executeTasks, and I don't see why. Since I have
been working from my intuition only, I assume that I just don't have a
clue on how to do this properly. 

So the question is if anybody has ever given this a try and knows what
to do to make it work?

Thanks,

Wilfred

Re: Subclassign AbstractAntMojo

Posted by Wilfred Springer <wi...@agilejava.com>.
Just FYI: I appeared to be working with the maven-antrun-plugin v. 1.1
instead of 1.0 in the Maven XDoclet plugin. Moving to 1.0 solved the
problem. Thanks!


On Sat, 2006-05-27 at 21:20 +0200, Kenney Westerhof wrote:

> On Sat, 27 May 2006, Wilfred Springer wrote:
> 
> Hi,
> 
> take a look at xdoclet-maven-plugin, it subclasses the antrun plugin.
> 
> See https://svn.codehaus.org/mojo/trunk/mojo/xdoclet-maven-plugin.
> 
> -- Kenney
> 
> > All,
> >
> > I tried to subclass AbstractAntMojo for another project, and I fail to
> > see how to configure it correctly. I figured that either the existing
> > components.xml fiel in maven-antrun-plugin would be picked by the
> > classloader, or otherwise add a components.xml file of my own to
> > src/main/resources in my own file. No matter what I try, my own plugin
> > gets an NPE somewhere in executeTasks, and I don't see why. Since I have
> > been working from my intuition only, I assume that I just don't have a
> > clue on how to do this properly.
> >
> > So the question is if anybody has ever given this a try and knows what
> > to do to make it work?
> >
> > Thanks,
> >
> > Wilfred
> >
> 
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

Re: Subclassign AbstractAntMojo

Posted by Kenney Westerhof <ke...@apache.org>.
On Sat, 27 May 2006, Wilfred Springer wrote:

Hi,

take a look at xdoclet-maven-plugin, it subclasses the antrun plugin.

See https://svn.codehaus.org/mojo/trunk/mojo/xdoclet-maven-plugin.

-- Kenney

> All,
>
> I tried to subclass AbstractAntMojo for another project, and I fail to
> see how to configure it correctly. I figured that either the existing
> components.xml fiel in maven-antrun-plugin would be picked by the
> classloader, or otherwise add a components.xml file of my own to
> src/main/resources in my own file. No matter what I try, my own plugin
> gets an NPE somewhere in executeTasks, and I don't see why. Since I have
> been working from my intuition only, I assume that I just don't have a
> clue on how to do this properly.
>
> So the question is if anybody has ever given this a try and knows what
> to do to make it work?
>
> Thanks,
>
> Wilfred
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org