I went ahead and created a JIRA issue:
http://jira.codehaus.org/browse/MNG-1983 since I needed to attach two
plugin projects and a test project to demonstrate the issue, and that
was too awkward to cut and paste.

The projects are extremely trivial, please take a look at the ZIP file
attached to the JIRA issue.  Here's what I put in the JIRA:

"Included are three very simple Maven modules, all created with "mvn
archetype:create". The first project, "testplugin-one" contains an
abstract and a concrete Mojo class. The second project,
"testplugin-two" contains just a concrete Mojo class. The third
project "testplugin-driver" contains a POM that invokes the two mojos:
the first time the parameters have values, the second time they are
null."

Thanks,
Shash

On 1/18/06, Rinku <[EMAIL PROTECTED]> wrote:
> Hi Sasvata,
>
> Can you paste:
> a) relevant POM section
> b) relevant Mojo code
>
> on http://www.rafb.net/paste/ , and send links on the
> mailing list and someone can have a look at it.
>
> Your best bet would be to use Composition but that
> would depend if a Mojo exposes getters/setters.
>
> Cheers,
>
> Rahul
>
>
> ----- Original Message -----
> From: "Sasvata Chatterjee" <[EMAIL PROTECTED]>
> To: "Maven Users List" <[email protected]>
> Sent: Thursday, January 19, 2006 8:31 AM
> Subject: Re: [m2] Mojo field injection problem extending abstract Mojo
> classes from another plugin/jar
>
>
> Could someone familiar with the plugin architecture please take a look
> at this and help me out?
>
> I am kind'a stuck, in the sense that I have to copy all the Mojo-s
> from the plugins I want to reuse to get it to work.  I don't think
> that is the corret way, so either I am doing something wrong, or,
> something doesn't work as expected.
>
> Should  I open a JIRA for this? Or, would a sample plugin that extends
> another plugin and demonstrates the problem help?
>
> Thanks,
> Shash
>
> On 1/15/06, Sasvata Chatterjee <[EMAIL PROTECTED]> wrote:
> > OK..one more email on this before I quit...I am stumped and stuck
> > anyway :-(
> >
> > I tried putting an empty abstract class that inherits from the
> > abstract Mojo in another plugin, and then having my concrete Mojo
> > inherit from this new abstract class.  I also tried extending my Mojo
> > from the concrete Mojo in another plugin.  Nothing doing, the
> > parameters are simply not defined in the plugin.xml.
> >
> > So, how do I reuse/extend Mojos from other plugins?
> >
>
> ---------------------------------------------------------------------
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to