[ https://issues.apache.org/jira/browse/MCHANGES-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14791699#comment-14791699 ]
Daniel Kreutz edited comment on MCHANGES-359 at 9/22/15 10:49 AM: ------------------------------------------------------------------ I added a example project to this ticket. Please build it with {{mvn -Dannouncement.runOnlyAtExecutionRoot=true changes:announcement-mail}}. {code:title=reactor} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>example</groupId> <artifactId>reactor</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>pom</packaging> <modules> <module>central-parent-pom</module> <module>archetype-with-central-parent-pom</module> </modules> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changes-plugin</artifactId> <version>2.11</version> <configuration> <smtpHost>someHost</smtpHost> <toAddresses> <toAddress implementation="java.lang.String">m...@host.de</toAddress> </toAddresses> </configuration> </plugin> </plugins> </build> </project> {code} {code:title=module central-parent-pom} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>example</groupId> <artifactId>central-parent-pom</artifactId> <version>0.0.1-SNAPSHOT</version> </project> {code} {code:title=module archetype-with-central-parent-pom} <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>example</groupId> <artifactId>archetype-with-central-parent-pom</artifactId> <version>0.0.1-SNAPSHOT</version> </project> {code} was (Author: dkreutz): I added a example project to this ticket. Please build it with {{mvn -Dannouncement.runOnlyAtExecutionRoot=true changes:announcement-mail}}. > announcement-mail in multi-module project > ----------------------------------------- > > Key: MCHANGES-359 > URL: https://issues.apache.org/jira/browse/MCHANGES-359 > Project: Maven Changes Plugin > Issue Type: Bug > Components: announcement > Affects Versions: 2.11 > Environment: apache-maven-3.2.5 > Reporter: Daniel Kreutz > Attachments: MCHANGES-359.zip > > > Hi, > I am using the announcement-mail goal on a multi-module project. I'd like to > send one mail for the whole projekt and not for every single module. So > maven-changes-plugin is only configured at the parent pom. The parent pom is > called with {{-Dannouncement.runOnlyAtExecutionRoot=true}}. > Goal announcement-generate works well, but with announcement-mail I get the > following error: > {code} > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Submodule 1.0.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] >>> maven-changes-plugin:2.11:announcement-mail (default-cli) > > :announcement-generate @ submodule >>> > [INFO] > [INFO] --- maven-changes-plugin:2.11:announcement-generate > (announcement-generate) @ submodule --- > [INFO] Skipping the announcement generation in this project because it's not > the Execution Root > [INFO] > [INFO] <<< maven-changes-plugin:2.11:announcement-mail (default-cli) < > :announcement-generate @ submodule <<< > [INFO] > [INFO] --- maven-changes-plugin:2.11:announcement-mail (default-cli) @ > submodule --- > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Submodule .................... FAILURE [ 0.784 s] > [INFO] Parent ........................... SUCCESS [ 24.840 s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 26.711 s > [INFO] Finished at: 2015-09-15T11:27:36+02:00 > [INFO] Final Memory: 22M/218M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-changes-plugin:2.11:announcement-mail > (default-cli) on project submodule: The parameters 'toAddresses' for goal > org.apache.maven.plugins:maven-changes-plugin:2.11:announcement-mail are > missing or invalid -> [Help 1] > {code} > I suppose, {{toAddresses}} will be injected before runOnlyAtExecutionRoot is > checked. So I get that error. -- This message was sent by Atlassian JIRA (v6.3.4#6332)