Re: [m2] how to call a mojo from other mojo

2007-05-14 Thread Adrian Herscu

Hi Wendy,

I have described my problem in a previous post ([m2] Configuring mojo 
parameters), but got not replies still :-(


Basically, it is one mojo implemented in ANT which needs to get the work 
of other mojo before (maven-dependency-plugin:unpack-dependencies). I 
can see to ways: 1) call the other mojo directly; 2) do some trick in 
the plexus components.xml descriptor, or somewhere else, to pass the 
other mojo the right parameters.


Please help,
Adrian.

Wendy Smoak wrote:

On 5/13/07, Adrian Herscu [EMAIL PROTECTED] wrote:


How is this related to my problem?


You'll probably get more useful responses if you describe the problem
you're trying to solve, rather than the solution you're having trouble
implementing.




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



[m2] how to call a mojo from other mojo

2007-05-13 Thread Adrian Herscu

Hi all,

After digging an hour in the documentation and sources I have no example 
of calling other mojos from an ANT-based mojo.


Is it possible? How?

Adrian.


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



Re: [m2] how to call a mojo from other mojo

2007-05-13 Thread Jochen Wiedmann

On 5/13/07, Adrian Herscu [EMAIL PROTECTED] wrote:


After digging an hour in the documentation and sources I have no example
of calling other mojos from an ANT-based mojo.

Is it possible? How?


I have recently developed a subclass of the war plugin. It is
duplicating the war plugins fields (yes, doing copypaste in the
source code) and acting as a proxy to an instance of the war plugin.

I haven't yet published the source code, but I intend to do that in
the near future. (Docs are to be written.)

Jochen



--
My cats know that I am a loser who goes out for hunting every day
without ever returning as much as a single mouse. Fortunately, I've
got a wife who's a real champ: She leaves the house and returns within
half an hour, carrying whole bags full of meal.

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



Re: [m2] how to call a mojo from other mojo

2007-05-13 Thread Adrian Herscu

How is this related to my problem?

Jochen Wiedmann wrote:

On 5/13/07, Adrian Herscu [EMAIL PROTECTED] wrote:


After digging an hour in the documentation and sources I have no example
of calling other mojos from an ANT-based mojo.

Is it possible? How?


I have recently developed a subclass of the war plugin. It is
duplicating the war plugins fields (yes, doing copypaste in the
source code) and acting as a proxy to an instance of the war plugin.

I haven't yet published the source code, but I intend to do that in
the near future. (Docs are to be written.)

Jochen






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



Re: [m2] how to call a mojo from other mojo

2007-05-13 Thread Wendy Smoak

On 5/13/07, Adrian Herscu [EMAIL PROTECTED] wrote:


How is this related to my problem?


You'll probably get more useful responses if you describe the problem
you're trying to solve, rather than the solution you're having trouble
implementing.

--
Wendy

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