如何发送电子邮件通知Maven构建 [英] How to send out email notification for Maven build

查看:289
本文介绍了如何发送电子邮件通知Maven构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的方法来发送电子邮件通知Maven中的每个构建不受外界的CI工具,就像蚂蚁?

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

推荐答案

如果CI是不是我会用一个简单的脚本封装选项:

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' user@example.com && rm -f build.log



如果你决定使用CI工具,我会强烈建议哈德森。该安装页面表明它是多么容易运行。的持续集成服务器的声音浮夸和enterprisey,但哈德森是死简单。

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.

这篇关于如何发送电子邮件通知Maven构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆