// if a POM file was provided for the artifact item,
// then
// use that POM file instead of generating a new one
if (artifactItem.getPomFile() != null)
{
ArtifactMetadata pomMetadata = new ProjectArtifactMetadata(
artifact, artifactItem.getPomFile());
artifact.addMetadata(pomMetadata);
}
else
{
// dynamically create a new POM file for this
// artifact
generatedPomFile = generatePomFile(artifactItem);
ArtifactMetadata pomMetadata = new ProjectArtifactMetadata(
artifact, generatedPomFile);
if (artifactItem.getGeneratePom() == true)
{
artifact.addMetadata(pomMetadata);