[MNG-8039] Don't change resolved artifact by DefaultProjectBuilder

This commit is contained in:
Slawomir Jaranowski 2024-02-10 00:00:01 +01:00
parent 0c529f830a
commit 972b074656
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ public class DefaultProjectBuilder implements ProjectBuilder {
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);