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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None
    • Environment:
      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 "<Unable to render embedded object: File (-- Using version range here ok -->" and "<) not found.-- Can't use version range here! -->".

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

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: