Can someone help me with this very simple problem:

 

I am running maven (rc1 and rc2) on Linux and I am not able to get a
non-zero return code from maven:

 

I have the following goal:

  

  <goal name='asb-test-failure'>

    <ant:fail>Forced failure using ant:fail</ant:fail>

  </goal>

 

When I do the following on Linux (Redhat 9.0):

 

#!/bin/sh

maven asb-test-failure

if [ $? -ne 0 ]; then

  echo "*** detected an error ***"

fi

 

I never get a non-zero return code.

 

Has anyone else seen something similar? The similar script running on
Windows works fine.

 

Thanks in advance for your help,

 

Julian Payne

 

P.S. Please reply to me as I am not subscribed to the Maven users
newsgroup.

Reply via email to