String classifier )
throws IOException
{
Artifact expandedSnapshot = this.stubFactory.createArtifact( groupId, artifactId, baseVersion, scope, type, classifier );
SnapshotTransformation tr = new SnapshotTransformation();
Snapshot snapshot = new Snapshot();
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 );