You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Saloucious <sa...@gmail.com> on 2007/11/16 19:16:51 UTC
Re: User-defined phase
Ok , assume you don't want to bind your goal to a phase.
Have you got a solution to be able to launch several times same goal in a
unique build process ?
franz see wrote:
>
> Good day to you, Marcus,
>
> As already mentioned, you cannot create your custom phase ( well,
> technically, you can. but that would require you to create your own
> lifecyle and using that but that is not recommendable, nor is it an easy
> task. But if you really really realy want to, take a look at the clover
> plugin ).
>
> Furthermore, creating a custom phase will not help you in your endeavor.
> You cannot run a single phase on its own. When you execute a phase, all
> the preceeding phases are executed as well.
>
> However, what you are probably looking for is a goal. A goal is a task
> that can be executed on its own. And these goals are usually bound to
> phase to create a custom build.
>
> In your case, if your 'start-environment' phase executes only one goal,
> then you can simply call that goal and problem solved.
>
> But if executes several goals, then you might want to use a profile for
> that and run that profile instead. Haven't tried it myself but im guessing
> that would work.
>
> Cheers,
> Franz
>
>
> Deluigi Marcus wrote:
>>
>> Hi
>>
>> I want to abuse maven to perform a setup for a testing environment, such
>> as starting derby, starting a tomcat and deploying a WAR file which is
>> another project.
>>
>> Maven does a fine job in downloading all the required software if
>> necessary and building the WAR file which it is another project.
>> Besides, it is platform independent, so I am using it for all these
>> tasks.
>>
>> But I don't want to enter all these commands on the command line all the
>> time. I think a much nicer way would be to add a custom phase (such as
>> 'start-environment') to the module. When I am developing, I would like
>> to be able to execute only this phase, without the life-cycle.
>>
>> Is something like that possible?
>> Of course, I can make a shell-script but I think adding a custom phase
>> to the project would be a nice thing.
>>
>>
>>
>> Greetings
>> Marcus
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/User-defined-phase-tf2774745s177.html#a13797887
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org