You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by solo1970 <so...@ericsson.com> on 2008/12/03 16:02:03 UTC

Re: [deploy-plugin] Abort deploy when a target is present

Somehow I'm getting a little bit lost!!!  I tried to read the feeds but I
don't quite get it! 

I'm just starting out with Maven (ver. 2.0.9) and I would like to have this
feature of NO re-reployement of the same version.  Can someone summarize? 

How do I do this?  Is it available???? 

Sonia 


MATHUS Baptiste wrote:
> 
> Hi all,
> 
> Recently, some developers did a release manually. So they put a release
> version in the pom and triggered a deploy. Everything fine but...
> The thing is: they forgot to re-update the pom.version to a new snapshot
> version.
> 
> So, as the code is continuously integrated, at each new commit, the recent
> release was "automatically" overridden many times with the snapshot code
> before realizing it :-/.
> So, what I would like is to be able to put an additional option for maven
> when run inside the continuous integration server, something like
> -DdontOverrideRelease, that would make fail the deployment if the released
> artefact is already present.
> 
> I've taken a quick look at
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html but
> it seems it's not currently possible.
> What do you think? Can a file an feature request about it in the plugin
> tracker?
> 
> Thanks a lot.
> 
> Cheers.
> -- 
> Baptiste
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-target-is-present-tp16329568p20814596.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [deploy-plugin] Abort deploy when a target is present

Posted by solo1970 <so...@ericsson.com>.
Our repository Manager is Archiva and it can't do it....

Sonia


Nord, James-2 wrote:
> 
> You need a repository manager.
> Nexus can do this - others may to.
> 
> http://nexus.sonatype.org/about/faq.html#QHowdoIdisableartifactredeploym
> ent
> 
> /James 
> 
>> -----Original Message-----
>> From: solo1970 [mailto:sonia.lodovichetti@ericsson.com] 
>> Sent: 03 December 2008 15:02
>> To: users@maven.apache.org
>> Subject: Re: [deploy-plugin] Abort deploy when a target is present
>> 
>> 
>> Somehow I'm getting a little bit lost!!!  I tried to read the 
>> feeds but I don't quite get it! 
>> 
>> I'm just starting out with Maven (ver. 2.0.9) and I would 
>> like to have this feature of NO re-reployement of the same 
>> version.  Can someone summarize? 
>> 
>> How do I do this?  Is it available???? 
>> 
>> Sonia 
>> 
>> 
>> MATHUS Baptiste wrote:
>> > 
>> > Hi all,
>> > 
>> > Recently, some developers did a release manually. So they put a 
>> > release version in the pom and triggered a deploy. 
>> Everything fine but...
>> > The thing is: they forgot to re-update the pom.version to a new 
>> > snapshot version.
>> > 
>> > So, as the code is continuously integrated, at each new commit, the 
>> > recent release was "automatically" overridden many times with the 
>> > snapshot code before realizing it :-/.
>> > So, what I would like is to be able to put an additional option for 
>> > maven when run inside the continuous integration server, something 
>> > like -DdontOverrideRelease, that would make fail the 
>> deployment if the 
>> > released artefact is already present.
>> > 
>> > I've taken a quick look at
>> > 
>> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html 
>> > but it seems it's not currently possible.
>> > What do you think? Can a file an feature request about it in the 
>> > plugin tracker?
>> > 
>> > Thanks a lot.
>> > 
>> > Cheers.
>> > --
>> > Baptiste
>> > 
>> > 
>> > 
>> 
>> --
>> View this message in context: 
>> http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-targ
>> et-is-present-tp16329568p20814596.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>> 
>> 
> 
> *********************************************************************************************************
> This e-mail is confidential, the property of NDS Ltd and intended for the
> addressee only.  Any dissemination, copying or distribution of this
> message or any attachments by anyone other than the intended recipient is
> strictly prohibited.  If you have received this message in error, please
> immediately notify the postmaster@nds.com and destroy the original
> message.  Messages sent to and from NDS may be monitored.  NDS cannot
> guarantee any message delivery method is secure or error-free. 
> Information could be intercepted, corrupted, lost, destroyed, arrive late
> or incomplete, or contain viruses.  We do not accept responsibility for
> any errors or omissions in this message and/or attachment that arise as a
> result of transmission.  You should carry out your own virus checks before
> opening any attachment.  Any views or opinions presented are solely those
> of the author and do not necessarily represent those of NDS.
> 
> To protect the environment please do not print this e-mail unless
> necessary.
> 
> NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West
> Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in
> England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
> **********************************************************************************************************
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-target-is-present-tp16329568p20815707.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [deploy-plugin] Abort deploy when a target is present

Posted by "Nord, James" <JN...@nds.com>.
You need a repository manager.
Nexus can do this - others may to.

http://nexus.sonatype.org/about/faq.html#QHowdoIdisableartifactredeploym
ent

/James 

> -----Original Message-----
> From: solo1970 [mailto:sonia.lodovichetti@ericsson.com] 
> Sent: 03 December 2008 15:02
> To: users@maven.apache.org
> Subject: Re: [deploy-plugin] Abort deploy when a target is present
> 
> 
> Somehow I'm getting a little bit lost!!!  I tried to read the 
> feeds but I don't quite get it! 
> 
> I'm just starting out with Maven (ver. 2.0.9) and I would 
> like to have this feature of NO re-reployement of the same 
> version.  Can someone summarize? 
> 
> How do I do this?  Is it available???? 
> 
> Sonia 
> 
> 
> MATHUS Baptiste wrote:
> > 
> > Hi all,
> > 
> > Recently, some developers did a release manually. So they put a 
> > release version in the pom and triggered a deploy. 
> Everything fine but...
> > The thing is: they forgot to re-update the pom.version to a new 
> > snapshot version.
> > 
> > So, as the code is continuously integrated, at each new commit, the 
> > recent release was "automatically" overridden many times with the 
> > snapshot code before realizing it :-/.
> > So, what I would like is to be able to put an additional option for 
> > maven when run inside the continuous integration server, something 
> > like -DdontOverrideRelease, that would make fail the 
> deployment if the 
> > released artefact is already present.
> > 
> > I've taken a quick look at
> > 
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html 
> > but it seems it's not currently possible.
> > What do you think? Can a file an feature request about it in the 
> > plugin tracker?
> > 
> > Thanks a lot.
> > 
> > Cheers.
> > --
> > Baptiste
> > 
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-targ
> et-is-present-tp16329568p20814596.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 

*********************************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the addressee only.  Any dissemination, copying or distribution of this message or any attachments by anyone other than the intended recipient is strictly prohibited.  If you have received this message in error, please immediately notify the postmaster@nds.com and destroy the original message.  Messages sent to and from NDS may be monitored.  NDS cannot guarantee any message delivery method is secure or error-free.  Information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.  We do not accept responsibility for any errors or omissions in this message and/or attachment that arise as a result of transmission.  You should carry out your own virus checks before opening any attachment.  Any views or opinions presented are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England and Wales  Registered no. 3080780   VAT no. GB 603 8808 40-00
**********************************************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: [deploy-plugin] Abort deploy when a target is present

Posted by Todd Thiessen <th...@nortel.com>.
Well, I am pretty new as well but I have been putting some thought into
this.

If you are deploying snapshots, simply the "unique version" option. This
ensures your snapshots never get clobbered.

For releases, I would use the release plugin. This plugin calculates for
you, or asks you for, a new version to use after the release. It
modifies the <version> tag of your pom with the new version and commits
it back to source control so you can't "clobber" an existing release
when you wish to generate a new one.


---
Todd Thiessen

-----Original Message-----
From: solo1970 [mailto:sonia.lodovichetti@ericsson.com] 
Sent: Wednesday, December 03, 2008 10:02 AM
To: users@maven.apache.org
Subject: Re: [deploy-plugin] Abort deploy when a target is present


Somehow I'm getting a little bit lost!!!  I tried to read the feeds but
I don't quite get it! 

I'm just starting out with Maven (ver. 2.0.9) and I would like to have
this feature of NO re-reployement of the same version.  Can someone
summarize? 

How do I do this?  Is it available???? 

Sonia 


MATHUS Baptiste wrote:
> 
> Hi all,
> 
> Recently, some developers did a release manually. So they put a 
> release version in the pom and triggered a deploy. Everything fine
but...
> The thing is: they forgot to re-update the pom.version to a new 
> snapshot version.
> 
> So, as the code is continuously integrated, at each new commit, the 
> recent release was "automatically" overridden many times with the 
> snapshot code before realizing it :-/.
> So, what I would like is to be able to put an additional option for 
> maven when run inside the continuous integration server, something 
> like -DdontOverrideRelease, that would make fail the deployment if the

> released artefact is already present.
> 
> I've taken a quick look at
> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html 
> but it seems it's not currently possible.
> What do you think? Can a file an feature request about it in the 
> plugin tracker?
> 
> Thanks a lot.
> 
> Cheers.
> --
> Baptiste
> 
> 
> 

--
View this message in context:
http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-target-is-pres
ent-tp16329568p20814596.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org