snapshot.setTimestamp( tr.getDeploymentTimestamp() );
snapshot.setBuildNumber( 1 );
RepositoryMetadata metadata = new SnapshotArtifactRepositoryMetadata( expandedSnapshot, snapshot );
String newVersion = snapshot.getTimestamp() + "-" + snapshot.getBuildNumber();
expandedSnapshot.setResolvedVersion( StringUtils.replace( baseVersion, Artifact.SNAPSHOT_VERSION, newVersion ) );
expandedSnapshot.addMetadata( metadata );
return expandedSnapshot;
}
private void assertArtifactExists( Artifact artifact, ArtifactRepository targetRepository ) {
File file = new File( targetRepository.getBasedir(),