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

Handle date qualifier in DefaultArtifactVersion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.9
    • None
    • None
    • Patch

    Description

      Eclipse artifacts use a date pattern in version qualifier and build fail with the following error

      [INFO] Failed to resolve artifact.
      
      Couldn't find a version in [1.0.0-v20070606] to match range [1.0.0,2.0)
        org.eclipse.equinox:app:jar:null
      

      The following patch adds javadoc for compareTo() to be more clear.
      Also, it handles date pattern in the version to allow "1.0.0" < "1.0.0-v20070606". Internally, it compares "1.0.0-19068845215" (ie new Date(Integer.MAX_VALUE, 12, 31 )) to "1.0.0-20070606"

      Attachments

        1. pom.xml
          3 kB
          Siveton Vincent
        2. DefaultArtifactVersion-handledate.diff
          6 kB
          Siveton Vincent

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              siveton Siveton Vincent
              Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: