apache / apache/maven-changes-plugin

[MCHANGES-359] announcement-mail in multi-module project

Abierto
#229 4 comentarios 0 reacciones 0 asignados Ver en GitHub
bug priority:minor
Lenguaje dominante
Java
Estrellas
15
Forks
22
Merge medio
8 h 1 min
PR fusionados (30 d)
3

Descripción

**[Daniel Kreutz](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dkreutz)** opened **[MCHANGES-359](https://issues.apache.org/jira/browse/MCHANGES-359?redirect=false)** 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](https://issues.apache.org/jira/secure/attachment/12756434/MCHANGES-359.zip) (_5.58 kB_)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza reproduciendo el proyecto MCHANGES-359.zip adjunto con el objetivo announcement-mail y runOnlyAtExecutionRoot=true, y ejecútalo. Compara las rutas de ejecución de announcement-mail y announcement-generate; se considera terminado cuando una compilación multimódulo omite el procesamiento de correo de los submódulos sin requerir toAddresses y envía un único anuncio para todo el proyecto.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
build-system
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.