Skip to content

Commit

Permalink
Merge pull request #207 from Karm/issue-203
Browse files Browse the repository at this point in the history
Fixes issue 203, suffixes for artifactIds
  • Loading branch information
Karm authored Sep 6, 2019
2 parents 597b6af + f4d8955 commit 376d514
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import java.util.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import static org.eclipse.microprofile.starter.core.model.JessieModel.Parameter.MICROPROFILESPECS;

Expand Down Expand Up @@ -145,6 +149,16 @@ public void adaptMavenModel(Model pomFile, JessieModel model, boolean mainProjec
mavenHelper.addDependency(pomFile, "org.bouncycastle", "bcpkix-jdk15on", "1.53");
}

if (model.hasMainAndSecondaryProject()) {
String artifactID = pomFile.getArtifactId();
if (mainProject) {
pomFile.setArtifactId(artifactID + "-" + JessieModel.MAIN_INDICATOR);
} else {
pomFile.setArtifactId(artifactID + "-" + JessieModel.SECONDARY_INDICATOR);
}
pomFile.getBuild().setFinalName(artifactID);
}

}

private Profile findProfile(String profileName) {
Expand Down

0 comments on commit 376d514

Please sign in to comment.