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-4326

Maven should not check snapshot repositories for dependencies in the reactor

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.10, 2.2.1
  • Fix Version/s: 3.0-beta-1
  • Component/s: Dependencies
  • Labels:
    None
  • Complexity:
    Intermediate

Description

If I build a multi-module project with intermodule dependencies, Maven will still check the snapshot repository for module artifacts in order to update the metadata in the local repository. Maven should not check the snapshot repository for any artifacts that are currently in the reactor.

In addition, if I install a snapshot artifact to the local repository, and then build another project that depends on the first project, Maven will check the snapshot repository. Instead, Maven should only check the snapshot repository when there is no up to date (according to the update policy) local artifact installation.

This seems to be working normally in Maven 3.0-alpha-6, but still requires more testing.

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MNG-5004 updatePolicy="never" always does 1 initial check

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-4755 Version ranges cannot be resolved against mirror if a local artifact is present

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 29/Mar/10 12:31 PM

Fixed in r928842. As long as the local copy satifies the update policy configured on a remote repository, Maven will not fetch the remote repository's metadata.

Show
Benjamin Bentmann added a comment - 29/Mar/10 12:31 PM Fixed in r928842. As long as the local copy satifies the update policy configured on a remote repository, Maven will not fetch the remote repository's metadata.

People

  • Assignee:
    Benjamin Bentmann
    Reporter:
    Paul Gier
Vote (1)
Watch (3)

Dates

  • Created:
    26/Aug/09 5:12 PM
    Updated:
    07/Feb/11 3:30 PM
    Resolved:
    29/Mar/10 12:31 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.