mirror of https://github.com/apache/maven.git
[MNG-8039] Don't change resolved artifact by DefaultProjectBuilder
This commit is contained in:
parent
0c529f830a
commit
972b074656
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue