We needed to do something similar a while back. The solution we came up was
to use groovy and AntBuilder (
http://groovy.codehaus.org/Using+Ant+from+Groovy). Not that you can't do it
with java but it'll just be too verbose and hard to maintain.

If nothing else invoking "mvn install" from AntBuilder is easy as cake.

On Mon, Feb 13, 2012 at 18:27, Karl Heinz Marbaise <[email protected]>wrote:

> Hi,
>
>
>  I am looking to do something similar. I want to deploy maven to a web
>> server
>> where I can remotely run commands like mn install to deploy jars from our
>> local repository for multiple applications without having to deploy
>> multiple
>> war files.
>>
> Do you need to deploy the artifacts only ? like war's, jar's etc. ?
> Than you should take a look into Aether Library which can help you...so
> you don't need a full fledged Maven for this...
>
> https://docs.sonatype.org/**display/AETHER/Home<https://docs.sonatype.org/display/AETHER/Home>
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
> Hauptstrasse 177                         USt.IdNr: DE191347579
> 52146 Würselen                           http://www.soebes.de
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@maven.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>

Reply via email to