Jonathan, I tried to follow your example but it does not work for me. What is your experience? You talked about some problems with parent poms. I have a definition in the parent pom for ciManagement and that works with a single mailing list for all sendOns. After reading your email I tried to re-define the ciManagement notification in a child pom. That did not work as hoped. Do you think re-defining give problems? Should I remove the ciManagement from the parent pom in total and define it in every single child pom?
Thanks for sharing any experience with that matter. Regards, Andreas -----Original Message----- From: Johnson, Jonathan [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 10:48 AM To: [email protected] Subject: RE: AddressException in notifying with multiple email addresses Adam, I had the same problem. I wanted to define the notifications in the POM and not through the Continuum admin screen. The whole comma (why not ';'?) separated list thing never worked for me. So in each of my sub module POM.XML files I added sections like this and it has worked perfectly since. (A comma separate list is really not a good idea since it circumvents the advantages of well-formed and repeatable XML elements.) <ciManagement> <system>Continuum</system> <url>http://yourcontinuumservermachine:8080/continuum</url> <notifiers> <notifier> <type>mail</type> <configuration> <address>[EMAIL PROTECTED]</address> </configuration> <sendOnError>true</sendOnError> <sendOnFailure>true</sendOnFailure> <sendOnSuccess>false</sendOnSuccess> <sendOnWarning>true</sendOnWarning> </notifier> <notifier> <type>mail</type> <configuration> <address>[EMAIL PROTECTED] </address> </configuration> <sendOnError>true</sendOnError> <sendOnFailure>true</sendOnFailure> <sendOnSuccess>false</sendOnSuccess> <sendOnWarning>true</sendOnWarning> </notifier> <notifier> <type>mail</type> <configuration> <address>[EMAIL PROTECTED] </address> </configuration> <sendOnError>true</sendOnError> <sendOnFailure>true</sendOnFailure> <sendOnSuccess>true</sendOnSuccess> <sendOnWarning>true</sendOnWarning> </notifier> </notifiers> </ciManagement> I tried adding this notifiers list to the parent POM.XML but that did not work. I had to add it to each sub-module pom.xml. I also tried referencing the list of the developers ids in my parent pom to get their emails but that did not work either. From what I have experienced the <developers> list and the <notifiers> lists are separate even though some of the information is duplicated and cannot be connected. Good luck/ - Jonathan -----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, September 08, 2006 1:34 PM To: [email protected] Subject: AddressException in notifying with multiple email addresses Hi Continuum People, I am looking at a problem whose solution has eluded me for the past couple of hours. I set up my continuum with a single notification address via the pom.xml and everything worked. I then added extra email addresses delimited by commas so: <address>[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],jua [EMAIL PROTECTED]</address> and continuum 1.0.3 seemed to like it and picked it up and displayed it in the project config. Javamail 1.3.2 though does not like it. I get the stack trace: javax.mail.internet.AddressException: Illegal route-addr in string [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],juan.cerve [EMAIL PROTECTED]'' (see more log output below). Interestingly sendmail on my linux box where continuum runs is quite happy with the format: [EMAIL PROTECTED]:/ctxtools/continuum-1.0.3$ /usr/sbin/sendmail [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],juan.cervera @no.com Lastly, here's the application.xml for the notification. Any help gratefully received. Adam <!-- | The mail notifier |--> <component> <role>org.codehaus.plexus.notification.notifier.Notifier</role> <role-hint>mail</role-hint> <implementation>org.apache.maven.continuum.notification.mail.MailContinu umNotifier</implementation> <requirements> <requirement> <role>org.codehaus.plexus.velocity.VelocityComponent</role> </requirement> <requirement> <role>org.apache.maven.continuum.store.ContinuumStore</role> </requirement> <requirement> <role>org.codehaus.plexus.mailsender.MailSender</role> </requirement> <requirement> <role>org.apache.maven.continuum.configuration.ConfigurationService</rol e> </requirement> </requirements> <configuration> <from-mailbox></from-mailbox> <from-name></from-name> <timestamp-format>EEE, d MMM yyyy HH:mm:ss Z</timestamp-format> <includeBuildResult>true</includeBuildResult> <alwaysSend>true</alwaysSend> </configuration> </component> <component> <role>org.codehaus.plexus.notification.RecipientSource</role> <implementation>org.apache.maven.continuum.notification.ContinuumRecipie ntSource</implementation> <configuration> <!-- Setting this propery will make Continuum send all emails to this address instead the address specified in the project configuration --> <to-override></to-override> </configuration> </component> <component> <role>org.codehaus.plexus.mailsender.MailSender</role> <implementation>org.codehaus.plexus.mailsender.javamail.JavamailMailSend er</implementation> <configuration> <smtp-host>localhost</smtp-host> <smtp-port>25</smtp-port> <sslProvider>com.sun.net.ssl.internal.ssl.Provider</sslProvider> <username>soa</username> <password>soa1</password> <sslMode>false</sslMode> </configuration> </component> jvm 1 | 2006-09-08 17:44:17,616 [Thread-2] INFO ContinuumBuildExecutor:maven2 - Exit code: 1 jvm 1 | 2006-09-08 17:44:17,920 [Thread-2] INFO Notifier:mail - Sending message: From '"[EMAIL PROTECTED]" <[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],juan.cerver [EMAIL PROTECTED]>'. jvm 1 | 2006-09-08 17:44:17,920 [Thread-2] INFO Notifier:mail - Recipient: To '<[EMAIL PROTECTED]>'. jvm 1 | 2006-09-08 17:44:17,921 [Thread-2] INFO Notifier:mail - Recipient: To '<[EMAIL PROTECTED]>'. jvm 1 | 2006-09-08 17:44:17,922 [Thread-2] INFO Notifier:mail - Recipient: To '<[EMAIL PROTECTED]>'. jvm 1 | 2006-09-08 17:44:17,922 [Thread-2] INFO Notifier:mail - Recipient: To '<[EMAIL PROTECTED]>'. jvm 1 | DEBUG: JavaMail version 1.3.2 jvm 1 | DEBUG: java.io.FileNotFoundException: /ctxtools/jdk1.5.0_06/jre/lib/javamail.providers (No such file or directory) jvm 1 | DEBUG: !anyLoaded jvm 1 | DEBUG: not loading resource: /META-INF/javamail.providers jvm 1 | DEBUG: successfully loaded resource: /META-INF/javamail.default.providers jvm 1 | DEBUG: Tables of loaded providers jvm 1 | DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps, com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.s un.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.m ail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.m ail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail. imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail. pop3.POP3Store,Sun Microsystems, Inc]} jvm 1 | DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Su n Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTrans port,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport, Sun Microsystems, Inc]} jvm 1 | DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map jvm 1 | DEBUG: !anyLoaded jvm 1 | DEBUG: not loading resource: /META-INF/javamail.address.map jvm 1 | DEBUG: java.io.FileNotFoundException: /ctxtools/jdk1.5.0_06/jre/lib/javamail.address.map (No such file or directory) jvm 1 | DEBUG: setDebug: JavaMail version 1.3.2 jvm 1 | 2006-09-08 17:44:18,087 [Thread-2] ERROR ContinuumNotificationDispatcher - Error while trying to use the mailnotifier. jvm 1 | org.codehaus.plexus.notification.NotificationException: Exception while sending message. jvm 1 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendM essage(MailContinuumNotifier.java:403) jvm 1 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.build Complete(MailContinuumNotifier.java:307) jvm 1 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendN otification(MailContinuumNotifier.java:202) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDisp atcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173) jvm 1 | at org.apache.maven.continuum.notification.DefaultContinuumNotificationDisp atcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96) jvm 1 | at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build( DefaultBuildController.java:378) jvm 1 | at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec uteTask(BuildProjectTaskExecutor.java:47) jvm 1 | at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut orRunnable.run(ThreadedTaskQueueExecutor.java:103) jvm 1 | at java.lang.Thread.run(Thread.java:595) jvm 1 | Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error while sending mail. jvm 1 | at org.codehaus.plexus.mailsender.javamail.JavamailMailSender.send(Javamail MailSender.java:217) jvm 1 | at org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendM essage(MailContinuumNotifier.java:399) jvm 1 | ... 8 more jvm 1 | Caused by: javax.mail.internet.AddressException: Illegal route-addr in string [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],juan.cerve [EMAIL PROTECTED]'' jvm 1 | at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:85 7) jvm 1 | at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793) jvm 1 | at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529) jvm 1 | at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:65) jvm 1 | at org.codehaus.plexus.mailsender.javamail.JavamailMailSender.send(Javamail MailSender.java:160) jvm 1 | ... 9 more jvm 1 | 2006-09-08 17:44:46,382 [SocketListener0-1] ERROR VelocityComponent - RHS of #set statement is null. Context will not be modified. screens/ProjectBuild.vm [line 103, column 3] LEGAL NOTICE: Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this e-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
