I started to peep at what it would take to implement this...
Looks like the cli options need to be updated to know about a -nsu, --
no-snapshot-updates. And the execution request needs a flag to hold
the state and DefaultMaven.execute() needs to be updated to set the
artifact repo factory's global update policy to
ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER
Does that sound about right?
--jason
On Nov 18, 2006, at 3:39 PM, Brett Porter wrote:
Easy enough to do, it's just the opposite of -U. Do you want to
implement it?
- Brett
On 18/11/2006, at 7:44 AM, Jason Dillon wrote:
Can we get a flag to mvn, which will set all snapshot repos
updatePolicy to never?
I'm trying to get a build that will always use locally installed
snapshots, but allow new deps to be downloaded if needed. All I
can think of now is to create a new profile which redefines all of
the snapshot repos with <updatePolicy>never</updatePolicy>... but
that gets messy as I need to add a profile to every pom that
defines a repo.
Would it be hard to implement a simple cli flag, like -nsu (--no-
snapshot-updates) which will just force all snap repos to never
update? This would be very, very, very helpful for automated
builds, when the local repo cache is known to have the right deps.
--jason
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]