Tweet your builds
IntroductionMaven Twitter Plugin lets you send Twitter status updates from Maven, without writing any Java code. It increases communication between Project owners and Project users by automatically tweeting build and release status via Twitter.
ConfigurationAdd your twitter
... [More]
username, password to your ~/.m2/settings.xml fileFor security reasons, it is recommended that you put your twitter username and password in your local settings file.
default
true
your twitter username
your twitter password
UsageAdd the Twitter plugin to your section in pom.xmlDefine the plugin as shown in example below.
It will send one Twitter status update per block defined. The block contains the twitterStatus and will be executed in the phase specified by the sub-element.
...
...
You can define as many blocks as you want.
Example
com.vineetmanohar
maven-twitter-plugin
0.1
test-passed
My first tweet from using #maven twitter plugin
test
tweet
Version ${project.version} of XYZ deployed
deploy
deploy
tweet
FAQWhat can I put under the elementYou can put static text under your twitter status. You can be creative and put variables related to your project. ${project} maps to the Maven Project Model. You can put hash tags by simply putting # before a word You can put @usernames directing the message to a specific account You final twitter message, after resolving any ${vars}, should be max 140 chars What happens if I send multiple message with the same textTwitter seems to ignore status updates if there is not status change from your.
What happens if my is more than 140 charactersThe current version does not check for length and will send your message to Twitter. Twitter will respond with an error.
Does this plugin support URL shortening?Not yet.
Does maven execution stop if the Twitter Plugin failsNo. All errors are logged, but no Exception is thrown.
Is there a limit to how many messages I can send?Yes. Twitter has a rate limit of 150 message per hour. See details.
What are all the different Maven phasesHere's Maven's documentation on Phases [Less]