jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-2681

Add cli flag to set all snapshot repos to updatePolicy = never

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0-alpha-1
  • Component/s: Command Line
  • Labels:
    None
  • Complexity:
    Intermediate

Description

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    MNG-2681.diff
    29/Nov/06 1:16 AM
    5 kB
    Jason Dillon

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-5064 mvn -nsu (--no-snapshot-updates) should not download snapshots (and break local builds)

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Jason Dillon added a comment - 29/Nov/06 1:16 AM

Patch against trunk/components. Can someone validate this?

Show
Jason Dillon added a comment - 29/Nov/06 1:16 AM Patch against trunk/components. Can someone validate this?
Hide
Permalink
Brett Porter added a comment - 07/Dec/06 9:36 PM

applied, thanks!

Show
Brett Porter added a comment - 07/Dec/06 9:36 PM applied, thanks!

People

  • Assignee:
    Brett Porter
    Reporter:
    Jason Dillon
Vote (0)
Watch (0)

Dates

  • Created:
    29/Nov/06 1:12 AM
    Updated:
    26/Jul/11 6:16 AM
    Resolved:
    07/Dec/06 9:36 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.