if (!isPomArtifact) {
artifact.addMetadata(new ProjectArtifactMetadata(artifact, pomFile));
}
if (updateReleaseInfo) {
artifact.setRelease(true);
<BUG>}
try {</BUG>
if (isPomArtifact) {
deployables.add(new DeployableArtifact(pomFile, artifact));
}

if (!isPomArtifact) {
artifact.addMetadata(new ProjectArtifactMetadata(artifact, pomFile));
}
if (updateReleaseInfo) {
artifact.setRelease(true);
}
final DeployStrategy deployStrategy;
try {
if (isPomArtifact) {
deployables.add(new DeployableArtifact(pomFile, artifact));
}
