I've created a simple plugin for Maven2, which can send a message from the Maven build process.
//Update:// Plugin's page moved. For actual page and download links, see Plugin's page at the Insolvenční rejstřík site.
This is how I use it in the Insolvenční rejstřík project:
01.
<
build
>
02.
<
plugins
>
03.
04.
<
plugin
>
05.
<
groupId
>cz.dynawest.maven</
groupId
>
06.
<
artifactId
>jabber-maven-plugin</
artifactId
>
07.
<
version
>1.0</
version
>
08.
09.
<
executions
>
10.
<
execution
><
phase
>initialize</
phase
><
goals
><
goal
>sendmessage</
goal
></
goals
></
execution
>
11.
</
executions
>
12.
13.
<
configuration
>
14.
<!-- Format: user@server/password -->
15.
<
loginData
>pohlidame.cz@jabber.cz/${jabber-pohlidamecz-jabber.cz-pass}</
loginData
>
16.
<
receiver
>ondra.zizka@jabber.cz</
receiver
>
17.
<
message
>Project was built.</
message
>
18.
<
runInThread
>false</
runInThread
>
19.
</
configuration
>
20.
21.
</
plugin
>
22.
23.
</
plugins
>
24.
</
build
>
Documentation of respective configuration items are in the source and in the POJO.
I'll put it here for download soon. Come back in a week.
It depends on the Smack library (perhaps best Jabber/XMPP library for Java, from the creators of the OpenFire XMPP server). However, to make it work for the server we use – Jabber.cz – I had to patch the sources, otherwise I was getting a NullPointerException during SaSL authentication. More about the patch here.