Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2742

Using a version range in a plugin dependency causes "failure to resolve artifact" error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.0.4
    • None
    • Dependencies
    • None
    • Windows XP SP2, java version "1.5.0_08"

    Description

      If I declare a dependency in a plugin using an exact version, Maven correctly resolves the artifact. If, however, I change the dependency's version to a version range, Maven no longer resolves the artifact. I'm using the very same artifact and version range in my project's dependencies and everything works ok. See my attached pom.xml file for details, in particular, the comments "<!-- Using version range here ok ->" and "<!- Can't use version range here! -->".

      I am using the "major.minor.revision-buildNumber" version string syntax as described on the wiki.

      Attachments

        1. mvn.txt
          24 kB
          Matthew T. Adams
        2. pom.xml
          4 kB
          Matthew T. Adams

        Issue Links

          Activity

            People

              Unassigned Unassigned
              matthewadams Matthew T. Adams
              Votes:
              17 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: