You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason Dillon (JIRA)" <ji...@codehaus.org> on 2006/11/29 08:13:41 UTC
[jira] Created: (MNG-2681) Add cli flag to set all snapshot repos
to updatePolicy = never
Add cli flag to set all snapshot repos to updatePolicy = never
--------------------------------------------------------------
Key: MNG-2681
URL: http://jira.codehaus.org/browse/MNG-2681
Project: Maven 2
Issue Type: New Feature
Components: Command Line
Reporter: Jason Dillon
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-2681) Add cli flag to set all snapshot repos to
updatePolicy = never
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2681?page=all ]
Brett Porter closed MNG-2681.
-----------------------------
Assignee: Brett Porter
Resolution: Fixed
Fix Version/s: 2.1
applied, thanks!
> Add cli flag to set all snapshot repos to updatePolicy = never
> --------------------------------------------------------------
>
> Key: MNG-2681
> URL: http://jira.codehaus.org/browse/MNG-2681
> Project: Maven 2
> Issue Type: New Feature
> Components: Command Line
> Reporter: Jason Dillon
> Assigned To: Brett Porter
> Fix For: 2.1
>
> Attachments: MNG-2681.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-2681) Add cli flag to set all snapshot repos
to updatePolicy = never
Posted by "Jason Dillon (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2681?page=all ]
Jason Dillon updated MNG-2681:
------------------------------
Attachment: MNG-2681.diff
Patch against trunk/components. Can someone validate this?
> Add cli flag to set all snapshot repos to updatePolicy = never
> --------------------------------------------------------------
>
> Key: MNG-2681
> URL: http://jira.codehaus.org/browse/MNG-2681
> Project: Maven 2
> Issue Type: New Feature
> Components: Command Line
> Reporter: Jason Dillon
> Attachments: MNG-2681.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira