maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cam <cmhjo...@gmail.com>
Subject Lifecycle executions run twice?
Date Fri, 01 Feb 2008 22:45:53 GMT
Hi,

I have a project which launches jetty using the cargo plugin - i have it 
starting up as part of the initialize phase and tearing down in compile 
(i use it for generating stub classes for a web service). If i run the 
install or deploy goals on their own it all works great but if i run 
"mvn install deploy" after the install phase it tries to start the 
container again even though the phase isn't executed again. This ends up 
causing class path problems as it's trying to load the war twice not to 
mention the extra hit of having to start and stop the container.

I would have thought that if you specify a phase which is part of a 
later phase they would combine to only execute each once, so since the 
install goal is included as part of deploy it would effectively be 
ignored. What i find really confusing is how the container can be 
started after the install phase when it's bound to 'initialize'.

Thanks,
Cam

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


Mime
View raw message