Re: calling plugin in another plugin?

2007-06-08 Thread 張旭
: Re: calling plugin in another plugin? Nunn, Gerald wrote: Jason, It's a bad practice, and leads to coupling between plugins which is bad. We've seen the aftermath of this happening in Maven 1.x. Since I'm doing this already I'm curious how this could be done better and accomplish my goal

Re: calling plugin in another plugin?

2007-06-08 Thread Kenney Westerhof
- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 5:48 PM To: Maven Users List Subject: Re: calling plugin in another plugin? Nunn, Gerald wrote: Jason, It's a bad practice, and leads to coupling between plugins which is bad. We've seen the aftermath

Re: calling plugin in another plugin?

2007-06-08 Thread Kenney Westerhof
into the release manager and be executed. That's imho the proper approach. -- Kenney ..David.. -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 5:48 PM To: Maven Users List Subject: Re: calling plugin in another plugin? Nunn, Gerald wrote

RE: calling plugin in another plugin?

2007-06-07 Thread David Jackman
(thinking in Maven 2.1 terms)? ..David.. -Original Message- From: Kenney Westerhof [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 5:48 PM To: Maven Users List Subject: Re: calling plugin in another plugin? Nunn, Gerald wrote: Jason, It's a bad practice, and leads

Re: calling plugin in another plugin?

2007-06-06 Thread Jo Vandermeeren
Hi Zhangxu, On 6/6/07, 張旭 [EMAIL PROTECTED] wrote: Does maven2 has api to add and call a plugin in another plugin ? This question has been asked a couple of times in the past, but nobody seems to have an answer. So, I think it's fair to conclude that there is no API available for this. Or

RE: calling plugin in another plugin?

2007-06-06 Thread Nunn, Gerald
Here is a MojoInvoker class I wrote that invokes one Mojo from another using reflection, I use it to invoke the install plugin from a plugin that handles breaking up and installing weblogic shared libraries into the repository. The philosphy is that the plugin doing the invoking is familiar

Re: calling plugin in another plugin?

2007-06-06 Thread Wayne Fay
If you attached something to your email, it was removed before being sent on to the rest of the list, unfortunately. Please resend (in the message body) or provide a download link -- it sounds useful. Wayne On 6/6/07, Nunn, Gerald [EMAIL PROTECTED] wrote: Here is a MojoInvoker class I wrote

RE: calling plugin in another plugin?

2007-06-06 Thread Nunn, Gerald
- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 10:43 AM To: Maven Users List Subject: Re: calling plugin in another plugin? If you attached something to your email, it was removed before being sent on to the rest of the list, unfortunately. Please resend

Re: calling plugin in another plugin?

2007-06-06 Thread Jason van Zyl
On 6 Jun 07, at 6:52 AM 6 Jun 07, Jo Vandermeeren wrote: Hi Zhangxu, On 6/6/07, 張旭 [EMAIL PROTECTED] wrote: Does maven2 has api to add and call a plugin in another plugin ? This question has been asked a couple of times in the past, but nobody seems to have an answer. It's a bad

RE: calling plugin in another plugin?

2007-06-06 Thread Nunn, Gerald
Jason, It's a bad practice, and leads to coupling between plugins which is bad. We've seen the aftermath of this happening in Maven 1.x. Since I'm doing this already I'm curious how this could be done better and accomplish my goal, I'm a relative newbie to Mojos so I'm wondering if I am

Re: calling plugin in another plugin?

2007-06-06 Thread Kenney Westerhof
Nunn, Gerald wrote: Jason, It's a bad practice, and leads to coupling between plugins which is bad. We've seen the aftermath of this happening in Maven 1.x. Since I'm doing this already I'm curious how this could be done better and accomplish my goal, I'm a relative newbie to Mojos so I'm

calling plugin in another plugin?

2007-06-05 Thread 張旭
Does maven2 has api to add and call a plugin in another plugin ? Or should I spell out dependency on the plugin being called and invoke Mojo.execute() directly? Anybody can help? Thanks in advance.