Hi,
You can always run mvn deploy:deploy, but the main point of deploy is not to deploy applications but to deploy binaries into a Maven repository manager (Nexus ..) Deploying applications is traditionnally done via others specifics tools, though a few maven plugins do that as well. On Wed, Sep 10, 2014 at 5:07 PM, Jan <raghure...@gmail.com> wrote: > Thanks All. > > My package is not environment specific, and currently i compile and package > using Maven, and run deployment using Ant, coz when i tried to run maven > deploy it was using the full life cycle goals again, instead of this is > there any way to execute just deploy and skip all other goals? > > > On Wed, Sep 10, 2014 at 9:26 AM, Graham Leggett <minf...@sharp.fm> wrote: > > > On 10 Sep 2014, at 10:03, Jan <raghure...@gmail.com> wrote: > > > > > Does anyone using Maven as Build Once and deploy Everywhere method? > Like > > > lets say i don't want to recompile my source code everytime for > different > > > environment DEV,SIT,UAT & PROD. I want to do my compile and package > only > > at > > > DEV then deploy the artifact to all mentioned environment. Is this > > possible > > > using Maven, is there any reference any one could share with me Please. > > > > We do this extensively with maven, using the maven release plugin. > > > > Our artifacts are in turn installable packages (rpms in our case, but > > could be deb, whatever) which get published into a yum repository. > > > > The code is "promoted" from dev to test to higher environments by hard > > linking the packages into distinct yum repos, a yum repo for each > > environment. > > > > The release created by the release plugin is built just once and > promoted. > > The rpms are created using the rpm-maven-plugin. > > > > Regards, > > Graham > > -- > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > -- Adrien Rivard