throws Exception
{
final String repoId = "nexus2351disableReleaseAllowRedeployWithMavenTest";
setWritePolicy(repoId, RepositoryWritePolicy.ALLOW_WRITE);
Gav gav1 =
new Gav(this.getTestId(), "release-deploy", "1.0.0", null, "jar", 0, new Date().getTime(),
"release-deploy", false, null, false, null);
Gav gav2 =
new Gav(this.getTestId(), "release-deploy", "1.0.1", null, "jar", 0, new Date().getTime(),
"release-deploy", false, null, false, null);
File mavenProject1 = getTestFile("maven-project-1");
File mavenProject2 = getTestFile("maven-project-2");
this.deployWithMavenExpectSuccess(mavenProject1, repoId);
Metadata metadata = this.downloadMetadataFromRepository(gav1, repoId);