Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send out email notification for Maven build

Is there a simple way to send out email notifications in Maven for each build without outside CI tools, just like Ant?

like image 431
moonese Avatar asked Jan 24 '23 08:01

moonese


1 Answers

If CI is not an option I would use a simple script wrapper:

mvn install 2>&1 | tee build.log && cat build.log | mail -s 'Maven build output' [email protected] && rm -f build.log

If you do decide to use a CI tool, I would strongly recommend Hudson. The installation page shows how easy it is to run. Continuous integration server sounds pompous and enterprisey, but Hudson is dead-simple.

like image 148
Robert Munteanu Avatar answered Jan 25 '23 22:01

Robert Munteanu