Hi Adam,
Thanks again , I want to run a HTTP server within the generate goal
and then genarate some HTTPClient codes , these client codes depend on
the running HTTP server ,and not possible to package within the
archetype as templates.

I don't think hack the source code  is a good choice here ,  because
other people cant use my archetype with official  Maven2 distro , so
it seems like  post process the custom task in to  the new project's
scope is the only solution here . I will try to achieve this as a
plug-in .

Thanks ,

On Wed, Feb 25, 2009 at 2:23 PM, Adam Leggett <adam.legg...@upco.co.uk> wrote:
>
>> how can enforce Maven to execute custom task with " "mvn
>> archetype:generate "..?
>>
>
> generate is a goal of the archetype plug-in; AFAIK, you will need to
> either hack the source code of the archetype plug-in itself to execute
> some additional steps as part of the goal execution or post process the
> generated project as indicated in my previous response.
>
> What exactly is your requirement here? What does your additional step
> need to do?
>
> --
> Adam Leggett
> BuildFactory Principal Architect
> UPCO
> Office: 0113 20 10 600
> Direct Line: 0113 20 10 631
> Mobile: 07801 269056
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Sagara Gunathunga

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

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

Reply via email to