本文整理了Java中org.apache.maven.artifact.repository.metadata.Versioning.setSnapshot()
方法的一些代码示例,展示了Versioning.setSnapshot()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Versioning.setSnapshot()
方法的具体详情如下:
包路径:org.apache.maven.artifact.repository.metadata.Versioning
类名称:Versioning
方法名:setSnapshot
[英]Set the current snapshot data in use for this version (artifact snapshots only).
[中]设置此版本正在使用的当前快照数据(仅限工件快照)。
代码示例来源:origin: apache/maven
protected static Versioning createVersioning( Snapshot snapshot )
{
Versioning versioning = new Versioning();
versioning.setSnapshot( snapshot );
versioning.updateTimestamp();
return versioning;
}
代码示例来源:origin: apache/maven
versioning.setSnapshot( snapshot );
versioning.setLastUpdated( snapshot.getTimestamp().replace( ".", "" ) );
lastUpdated = versioning.getLastUpdated();
代码示例来源:origin: apache/maven
repaired.setSnapshot( new Snapshot() );
repaired.getSnapshot().setLocalCopy( true );
versioning = repaired;
代码示例来源:origin: apache/maven
versioning.setSnapshot( parseSnapshot( parser, strict ) );
代码示例来源:origin: apache/maven
private static Metadata createMetadata( Artifact artifact, boolean legacyFormat )
{
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
Versioning versioning = new Versioning();
versioning.setSnapshot( snapshot );
Metadata metadata = new Metadata();
metadata.setVersioning( versioning );
metadata.setGroupId( artifact.getGroupId() );
metadata.setArtifactId( artifact.getArtifactId() );
metadata.setVersion( artifact.getBaseVersion() );
if ( !legacyFormat )
{
metadata.setModelVersion( "1.1.0" );
}
return metadata;
}
代码示例来源:origin: org.apache.maven/maven-aether-provider
versioning.setSnapshot( snapshot );
versioning.setLastUpdated( snapshot.getTimestamp().replace( ".", "" ) );
lastUpdated = versioning.getLastUpdated();
代码示例来源:origin: apache/maven
m.getVersioning().setSnapshot( new Snapshot() );
代码示例来源:origin: org.sonatype.nexus.plugins/nexus-repository-maven
new DateTime(maven2Metadata.getSnapshots().getSnapshotTimestamp())));
snapshot.setBuildNumber(maven2Metadata.getSnapshots().getSnapshotBuildNumber());
versioning.setSnapshot(snapshot);
代码示例来源:origin: apache/maven
v.setSnapshot( s );
changed = true;
代码示例来源:origin: apache/karaf
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy(true);
versioning.setSnapshot(snapshot);
SnapshotVersion snapshotVersion = new SnapshotVersion();
snapshotVersion.setClassifier(artifact.getClassifier());
代码示例来源:origin: org.apache.karaf.tooling/karaf-maven-plugin
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy(true);
versioning.setSnapshot(snapshot);
SnapshotVersion snapshotVersion = new SnapshotVersion();
snapshotVersion.setClassifier(artifact.getClassifier());
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
vs.setSnapshot( operand.getSnapshot() );
代码示例来源:origin: org.apache.maven/maven-aether-provider
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
repaired.setSnapshot( snapshot );
versioning = repaired;
代码示例来源:origin: org.apache.maven/maven-resolver-provider
repaired.setSnapshot( new Snapshot() );
repaired.getSnapshot().setLocalCopy( true );
versioning = repaired;
代码示例来源:origin: org.apache.maven/maven-aether-provider
private static Metadata createMetadata( Artifact artifact, boolean legacyFormat )
{
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
Versioning versioning = new Versioning();
versioning.setSnapshot( snapshot );
Metadata metadata = new Metadata();
metadata.setVersioning( versioning );
metadata.setGroupId( artifact.getGroupId() );
metadata.setArtifactId( artifact.getArtifactId() );
metadata.setVersion( artifact.getBaseVersion() );
if ( !legacyFormat )
{
metadata.setModelVersion( "1.1.0" );
}
return metadata;
}
代码示例来源:origin: org.apache.maven/maven-resolver-provider
private static Metadata createMetadata( Artifact artifact, boolean legacyFormat )
{
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
Versioning versioning = new Versioning();
versioning.setSnapshot( snapshot );
Metadata metadata = new Metadata();
metadata.setVersioning( versioning );
metadata.setGroupId( artifact.getGroupId() );
metadata.setArtifactId( artifact.getArtifactId() );
metadata.setVersion( artifact.getBaseVersion() );
if ( !legacyFormat )
{
metadata.setModelVersion( "1.1.0" );
}
return metadata;
}
代码示例来源:origin: io.tesla.maven/maven-aether-provider
private static Metadata createMetadata( Artifact artifact, boolean legacyFormat )
{
Snapshot snapshot = new Snapshot();
snapshot.setLocalCopy( true );
Versioning versioning = new Versioning();
versioning.setSnapshot( snapshot );
Metadata metadata = new Metadata();
metadata.setVersioning( versioning );
metadata.setGroupId( artifact.getGroupId() );
metadata.setArtifactId( artifact.getArtifactId() );
metadata.setVersion( artifact.getBaseVersion() );
if ( !legacyFormat )
{
metadata.setModelVersion( "1.1.0" );
}
return metadata;
}
代码示例来源:origin: org.apache.maven.archiva/archiva-artifact-converter
snapshot.setBuildNumber( Integer.valueOf( matcher.group( 3 ) ).intValue() );
snapshot.setTimestamp( matcher.group( 2 ) );
versioning.setSnapshot( snapshot );
代码示例来源:origin: org.apache.archiva/archiva-artifact-converter
snapshot.setBuildNumber( Integer.parseInt( matcher.group( 3 ) ) );
snapshot.setTimestamp( matcher.group( 2 ) );
versioning.setSnapshot( snapshot );
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
if ( RepositoryPolicy.RELEASE.equals( policy ) )
metadata.getVersioning().setSnapshot( null );
String latest = filterMetadata( versions, false );
metadata.getVersioning().setLatest( latest );
内容来源于网络,如有侵权,请联系作者删除!