*/
if (!isPomProject(moduleArtifact)) {
for (ArtifactMetadata metadata : moduleArtifact.getMetadataList()) {
if (metadata instanceof ProjectArtifactMetadata) { // the pom metadata
File pomFile = ((ProjectArtifactMetadata) metadata).getFile();
artifactBuilder.type("pom");
String pomFileName = StringUtils.removeEnd(artifactName, artifactExtension) + "pom";
artifactBuilder.name(pomFileName);
org.jfrog.build.api.Artifact pomArtifact = artifactBuilder.build();
deploymentPath = getDeploymentPath(groupId, artifactId, artifactVersion, artifactClassifier, "pom");
if (excludeArtifactsFromBuild && PatternMatcher.pathConflicts(deploymentPath, patterns)) {