You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Carlos Alonso <ca...@unkasoft.com> on 2008/07/11 11:43:12 UTC

Conditional target execution

Hi all.

Is it any way of executing one maven target or another depending, for 
example, on the test phase result?
I mean, I use Hudson integration environment and I invoke the install 
target so that, after every build, the generated artifact is copied to 
the local repository. My problem is that when test cases fails, I 
wouldn't want the artifact to be installed on the repository. But, on 
the other hand, I don't want the whole build to fail if any of the test 
case fail.

Thanks in advance.

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