本文整理了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
[英]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);
内容来源于网络,如有侵权,请联系作者删除!