This is what the release poms feature was meant to do - take a
snapshot of what was actually resolved and use that for the release
(and in the future).
The difficulty with it came in that what gets deployed is not what
you want then (as it was also resolving the dependencies, etc). But
that can be overcome.
I think this topic also starts to touch ever so slightly on the
shelved discussion I started way back when about separating parts of
the pom that serve different purposes (the declaration vs the
instantiation, if you will).
Cheers,
Brett
On 12/04/2007, at 9:05 PM, Brian E. Fox wrote:
I wrote this up here: http://jira.codehaus.org/browse/MNG-2945
-----Original Message-----
From: Nigel Magnay [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 2:42 PM
To: Maven Developers List
Subject: Re: Remove auto-resolution of plugin versions from Maven 2.1
Here's how I deal with instances where I need a snapshot plugin in my
corp build:
1. Checkout the code for the snapshot.
2. Build it, changing the version to something like
2.0-[companyname]-svnrev 3. If I have to patch the source at all, I
take the whole thing and put it in my svn. If not, then the svnrev in
the release points me back to where I got it in case I need it later.
4. Deploy it to my repos.
5. Use this now "internally released" version in my builds.
I've done this, and also with smaller external snapshots I've
downloaded
them and just adjusted the metadata (and filename) before deploying to
my local repos.
What would be really, really, really useful would be a plugin that you
could call that would download a snapshot of a project and its
(transient,
snapshot) dependencies, re-label it as a fixed internal version.
There's
occasions where you just can't wait for an external project to release
(and of course this problem is recursive!), and rebuilding everything
yourself is a bit drag on the person doing a release.
something like
mvn artifact:freeze-snapshot org.apache.myfaces myfaces-all
1.1.6-SNAPSHOT 1.1.6-mycorp
---------------------------------------------------------------------
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]