This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven: Perform a Goal on a fail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Maven: Perform a Goal on a fail" Watch "Maven: Perform a Goal on a fail" New topic
Author

Maven: Perform a Goal on a fail

Paul Connolly
Greenhorn

Joined: Aug 03, 2004
Posts: 2
Hey all,

anyone know if its possible to call a goal on a fail in a build? I have a general build process thats written in Maven thats called every night. On a succesful build (i.e. it makes it to the last goal), an email is sent(this happens in the last goal) to a number of users with the log file of the build. If a build fails, the only way you notice this, is that you don't recieve this email. I would like to email the log file to these users when the build fails. The only way I can envisage this is that, a goal be called on a fail. Anyone know if there's anyway of doing this?

Cheers
Paul
 
 
subject: Maven: Perform a Goal on a fail
 
Threads others viewed
CruiseControl: force building project #2 programaticaly from another project #1
Any ideas on remote deployment?
maven with checkstyle configuration
Keeping tests in sync
install error -- The packaging for this project did not assign a file to the build artifact
IntelliJ Java IDE