Dev - Nexus
  1. Dev - Nexus
  2. NEXUS-3806

Support maven-metadata.xml changes introduced for Maven 3.x relating to SNAPSHOT resolution

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: Repository
    • Labels:
      None
    • Global Rank:
      5420

      Description

      Benjamin Bentmann <bentmann@sonatype.com> Tue, Jul 6, 2010 at 7:02 AM
      Reply-To: sonatype-nexus-dev@lists.sonatype.com
      To: sonatype-nexus-dev@lists.sonatype.com
      Hi,

      to address issues with resolution of SNAPSHOT artifacts having classifiers and to pave the way for alternative SNAPSHOT expansion, I extended the maven-metadata.xml that gets deployed to the g:a:v level.

      This mail is meant as an internal heads-up for the Nexus guys before we publically announce this change on the Maven dev list for adoption by other repo managers.

      <?xml version="1.0" encoding="UTF-8"?>
      <metadata modelVersion="1.1.0">
        <groupId>org.apache.maven.its.mng4452</groupId>
        <artifactId>producer</artifactId>
        <version>0.1-SNAPSHOT</version>
        <versioning>
          <snapshot>
            <timestamp>20100908.123625</timestamp>
      
            <buildNumber>3</buildNumber>
          </snapshot>
          <lastUpdated>20100908123625</lastUpdated>
          <snapshotVersions>
            <snapshotVersion>
              <extension>jar</extension>
              <value>0.1-20100908.123625-3</value>
      
              <updated>20100908123625</updated>
            </snapshotVersion>
            <snapshotVersion>
              <extension>pom</extension>
              <value>0.1-20100908.123625-3</value>
              <updated>20100908123625</updated>
            </snapshotVersion>
      
            <snapshotVersion>
              <classifier>unix</classifier>
              <extension>jar</extension>
              <value>0.1-20100908.123622-1</value>
              <updated>20100908123622</updated>
            </snapshotVersion>
            <snapshotVersion>
      
              <classifier>win</classifier>
              <extension>jar</extension>
              <value>0.1-20100908.123623-2</value>
              <updated>20100908123623</updated>
            </snapshotVersion>
            <snapshotVersion>
              <classifier>win</classifier>
      
              <extension>war</extension>
              <value>0.1-20100908.123625-3</value>
              <updated>20100908123625</updated>
            </snapshotVersion>
          </snapshotVersions>
        </versioning>
      </metadata>
      

      The new format, indicated by the attribute modelVersion=1.1.0, basically records the expanded version for every artifact at the given g:a:v level. It has been designed to be readable by Maven 2.0.10+ to allow for some interop on the resolution side.

      The next version of Maven 3 will support the boolean system property maven.metadata.legacy to enable deployment of the 1.0.0 format if needed.

      Ciao!

      Benjamin

      Note: This issue is just a "clone" of the NXCM-2222. Initially, this issue was created in NXCM JIRA, while this is completely OSS related issue. This is here just to make it visible to OSS users.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Tamás Cservenák
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: