I think we both have the goal of doing automated integration testing with Maven :)
Currently I have something in CVS that will allow that to some extent. I have added a list of failed projects to the reactor and maven:maven so when you specify ignoreFailures, you can find out what failed and do such notifications. However, I haven't been able to capture the output of the reactor, and this obviously doesn't support just a straight maven execution. I believe the actually mail out is probably something that goes with the reports, and the reports should set a flag to indicate their success or failure (as some reports won't ever fail: eg the CVS based activity reports). Then, build log should be a report. I will add the following issues to JIRA, hopefully getting a chance to implement them myself: 1) add mail out capability to reports 2) add build listener support (like Ant) 3) add report for build listener How does that sound? Here is how I think the mail out should work: 1) report element in POM takes a "nag" property - send to nag email address if true, or specify custom nag email address for that report 2) reports that fail will mail out by default, but can flag "mail on success", especially for receiving activity reports, for example. 3) default is for all registered reports to mail out on failure only, as long as nagEmailAddress is set Cheers, Brett -----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Tuesday, 8 July 2003 8:37 AM To: 'Maven Users List' Subject: RE: Sending mail with Maven Hi Brett, Just some thoughts. Is that something that is best placed in the test plugin or would it be better placed as either a plugin in itself or as a build listener (as in Ant)? More generally, the feature I would be looking for is: "send an email when the build fails". I think this covers your use case + some others. Thoughts? Thanks -Vincent > -----Original Message----- > From: Brett Porter [mailto:[EMAIL PROTECTED] > Sent: 08 July 2003 00:32 > To: 'Maven Users List' > Subject: RE: Sending mail with Maven > > I'm currently planning to add mailing support to the junit tests via some > property and nagEmailAddress. I've done the work, but I'm using a XSL for > the email that I'm not happy with. > > What other mailouts would you be looking for? I don't see any reason why > we > can't send all reports via the mechanism actually - except that you don't > want to receive them if they were successful. > > - Brett > > -----Original Message----- > From: Paul Libbrecht [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 8 July 2003 7:08 AM > To: Maven Users List > Subject: Re: Sending mail with Maven > > > [EMAIL PROTECTED] wrote: > > I'm trying to send build notification emails. I've configured > nagEmailAddress > > in project.xml. But I'd like to know what else needs to be done to have > Maven > > send emails. > > Don't know if there's anything done for that, grepping through the > plugins seems to be using it only for gump and genapp... > > It shouldn't be too hard to make a maven.xml goal for that containing as > prerequisites the goal you intend to run (or something better that > ignores failures) and as body something based on the jelly mail library. > > Hope that helps. > > Paul > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
