org.apache.maven.artifact.repository.metadata.Versioning.setSnapshotVersions()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中org.apache.maven.artifact.repository.metadata.Versioning.setSnapshotVersions()方法的一些代码示例,展示了Versioning.setSnapshotVersions()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Versioning.setSnapshotVersions()方法的具体详情如下:
包路径:org.apache.maven.artifact.repository.metadata.Versioning
类名称:Versioning
方法名:setSnapshotVersions

Versioning.setSnapshotVersions介绍

[英]Set information for each sub-artifact available in this artifact snapshot.
[中]为此工件快照中可用的每个子工件设置信息。

代码示例

代码示例来源:origin: apache/maven

metadata.getVersioning().setSnapshotVersions( new ArrayList<>( versions.values() ) );

代码示例来源:origin: apache/maven

metadata.getVersioning().setSnapshotVersions( new ArrayList<>( versions.values() ) );

代码示例来源:origin: apache/maven

versioning.setSnapshotVersions( snapshotVersions );
while ( parser.nextTag() == XmlPullParser.START_TAG )

代码示例来源:origin: org.sonatype.nexus/nexus-proxy

public static void setModelVersion( final Metadata metadata, final Version version )
  {
    switch ( version )
    {
      case V100:
        metadata.setModelVersion( null );
        Versioning versioning = metadata.getVersioning();
        if ( versioning != null )
        {
          versioning.setSnapshotVersions( null );
        }
        break;

      case V110:
        metadata.setModelVersion( "1.1.0" );
        break;
    }
  }
}

代码示例来源:origin: org.apache.maven/maven-aether-provider

metadata.getVersioning().setSnapshotVersions( new ArrayList<>( versions.values() ) );

代码示例来源:origin: org.apache.maven/maven-resolver-provider

metadata.getVersioning().setSnapshotVersions( new ArrayList<>( versions.values() ) );

代码示例来源:origin: io.tesla.maven/maven-aether-provider

metadata.getVersioning().setSnapshotVersions( new ArrayList<SnapshotVersion>( versions.values() ) );

代码示例来源:origin: org.apache.maven/maven-aether-provider

metadata.getVersioning().setSnapshotVersions( new ArrayList<>( versions.values() ) );

代码示例来源:origin: org.apache.maven/maven-resolver-provider

metadata.getVersioning().setSnapshotVersions( new ArrayList<>( versions.values() ) );

代码示例来源:origin: io.tesla.maven/maven-aether-provider

metadata.getVersioning().setSnapshotVersions( new ArrayList<SnapshotVersion>( versions.values() ) );

代码示例来源:origin: io.tesla.maven/maven-repository-metadata

versioning.setSnapshotVersions( snapshotVersions );
while ( parser.nextTag() == XmlPullParser.START_TAG )

代码示例来源:origin: org.sonatype.nexus.plugins/nexus-repository-maven

snapshotVersions.add(snapshotVersion);
versioning.setSnapshotVersions(snapshotVersions);
versioning.setLastUpdated(Constants.METADATA_DOTLESS_TIMESTAMP.print(maven2Metadata.getLastUpdated()));
result.setVersioning(versioning);

相关文章