I did some additional research, it seems to be a general maven2-job bug (sorry
for assigning it to m2extrasteps).
If a sub-pom fails resolving an artifact no emails are sent.
Tested with 2.0.9 and 2.1.0
If there is a simply compile error mails are getting sent.
Maybe someone can retry to reproduce using these steps:
1. create new m2 build job and use the project structure in the attached zip
2. check email-notification and add an recipent (and check "Send e-mail for
every unstable build")
Result: no mail, output:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) delta:delta:jar:error-in-version-number
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=delta -DartifactId=delta
-Dversion=error-in-version-number -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=delta -DartifactId=delta
-Dversion=error-in-version-number -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) pos:iac:jar:1.0.0-SNAPSHOT
2) delta:delta:jar:error-in-version-number
----------
1 required artifact is missing.
for artifact:
pos:iac:jar:1.0.0-SNAPSHOT
from the specified remote repositories:
artifactory (http://maven.example.at/artifacts/repo)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Jul 01 17:07:46 CEST 2009
[INFO] Final Memory: 11M/167M
[INFO] ------------------------------------------------------------------------
channel stopped
Finished: FAILURE
Hi - I'm not able to duplicate this so far. I don't have the email to
individuals who broke the build enabled (since my test environment isn't using
source from source control, so that I know it'll break), but I am getting the
global emails for build failure. Can you confirm that emails are being sent
properly with the m2 extra steps disabled?