Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1
-
None
-
maven 2.0.9
JDK 1.6.011
WinXP
Description
If the pom.xml is containing some sub-modules, the goal changes:announcement-mail is trying to send it for each module, and fail because it could not find the template.
Announcement template C:\Dev\MyProject\SubmoduleA\target\announcement\announcement.vm not found...
Should be possible to configure the pom to send only the email for the root project.
Working with "mvn --non-recursive" option, but we need to be able to configure this behaviour into the pom.xml
The same issue for the changes:announcement-generate, but it's only a warning and the build can finish successfully.
Should include something like:
/**
- @parameter expression="${project}"
**/
private MavenProject mavenProject;
/**
- If true, will generate the changes only for the root module in case of project with sub-modules.
- @parameter expression="${plugin.aggregate}" default-value = "false"
*/
private boolean aggregate;
public void execute() {
if (!mavenProject.isExecutionRoot() && aggregate)
..................
}
Attachments
Attachments
Issue Links
- is duplicated by
-
MCHANGES-153 For multi-module project, sending the email once for the project, not one email for each sub-module
- Closed
- relates to
-
MCHANGES-300 Make it possible to run the changes-check and changes-validate goals only once for a multi-module project
- Closed