I'd suggest one of 3 things:
- suggest an enhancement to the mojo executor to allow you to do this
- write your own, use the maven-invoker to run the instances of release:prepare / perform / clean - write your own, using the underlying release libraries (you'll notice the release plugins are mostly delegating options, so writing your own release mojo with fewer options to wrap the libraries is pretty straightforward)

Cheers,
Brett

On 18/12/2008, at 12:36 AM, De Smet Ringo wrote:

Hello,

Before I head of starting a custom plugin, I would like to know if anyone is aware of a plugin like the mojo-executor plugin, but with a bit more features.

http://code.google.com/p/mojo-executor/ <http://code.google.com/p/mojo-executor/ >

My intent is to automate making releases using the maven-release- plugin, so my sequence of actions seems to be something like this:

--- start pseudocode --
int returnCode = SUCCESS
try {
execute a custom plugin to calculate the next release version number execute release:prepare with the proper options and using the previously calculated version number
   execute release:perform with the proper options
} catch(Exception) {
   returnCode = FAILURE
} finally {
   execute release:clean  // shouldn't fail.
}
return returnCode
--- end pseudocode --

As you can see, I need a bit more control than just listing the MOJO's I want to execute...

Greetz,

Ringo

*************************************************************

Dit e-mail bericht inclusief eventuele ingesloten bestanden kan informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele eigendomsrechten. Dit bericht is uitsluitend bestemd voor de geadresseerde(n). Elk gebruik van de informatie vervat in dit bericht (waaronder de volledige of gedeeltelijke reproductie of verspreiding onder elke vorm) door andere personen dan de geadresseerde(n) is verboden. Indien u dit bericht per vergissing heeft ontvangen, gelieve de afzender hiervan te verwittigen en dit bericht te verwijderen.

This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the addressees. Any use of the information contained herein (including but not limited to total or partial reproduction or distribution in any form) by other persons than the addressees is prohibited. If you have received this e-mail in error, please notify the sender and delete its contents.

Ce courriel et les annexes éventuelles peuvent contenir des informations confidentielles et/ou protégées par des droits de propriété intellectuelle. Ce message est adressé exclusivement à son (ses) destinataire(s). Toute utilisation du contenu de ce message (y compris la reproduction ou diffusion partielle ou complète sous toute forme) par une autre personne que le(s) destinataire(s) est formellement interdite. Si vous avez reçu ce message par erreur, veuillez prévenir l'expéditeur du message et en détruire le contenu.

*************************************************************

--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to