[MCHANGES-359] announcement-mail in multi-module project
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- build-system
Research direction
Start by reproducing the attached MCHANGES-359.zip project with the announcement-mail goal and runOnlyAtExecutionRoot=true. Compare the announcement-mail and announcement-generate execution paths; done means a multi-module build skips submodule mail processing without requiring toAddresses and sends one announcement for the whole project.
Written by the indexing model from the issue text.
Description
Daniel Kreutz opened MCHANGES-359 and commented
Hi,
I am using the announcement-mail goal on a multi-module project. I'd like to send one mail for the whole project 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:
[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]
I suppose, toAddresses will be injected before runOnlyAtExecutionRoot is checked. So I get that error.
Affects: 2.11
Attachments:
- MCHANGES-359.zip (5.58 kB)
- Dominant language
- Java
- Stars
- 15
- Forks
- 22
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/maven-changes-plugin
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 55/100
apache/maven-changes-plugin#650 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 52/100
apache/maven-changes-plugin#633 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
apache/maven-changes-plugin#619 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/maven-changes-plugin#610 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 30/100
apache/maven-changes-plugin#608 ·
All issues in apache/maven-changes-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100