Skip to content

Commit

Permalink
[MNG-8039] Don't change resolved artifact by DefaultProjectBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Feb 15, 2024
1 parent 0c529f8 commit 972b074
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ ProjectBuildingResult build(Artifact artifact, boolean allowStubModel) throws Pr

File pomFile = pomArtifact.getFile();

if ("pom".equals(artifact.getType())) {
if (!artifact.isResolved() && "pom".equals(artifact.getType())) {
artifact.selectVersion(pomArtifact.getVersion());
artifact.setFile(pomFile);
artifact.setResolved(true);
Expand Down

0 comments on commit 972b074

Please sign in to comment.