you should use maven-release-plugin to do the deployment. This plugin
always increment the release version after it releases the artitfacts

-D

On 8/27/07, Hilco Wijbenga <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm in the process of setting up a Maven environment. Things are
> working nicely but I noticed that I could repeatedly deploy the same
> artifact (i.e. with the same version). For snapshots that's no problem
> but for releases that's not what one wants.
>
> I couldn't find anything in the POM description that would prevent
> this. Google also didn't provide any answers. So how does one prevent
> redeploying artifacts? The only thing that I could come up with was
> running a cron job that would set everything (excluding
> maven-metadata.xml*) to read-only.
>
> Is there a best practice for this?
>
> Cheers,
> Hilco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to