diff --git a/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java b/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java index 0fcb7654bc..e59a2e1700 100644 --- a/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java +++ b/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java @@ -154,7 +154,7 @@ public class MavenMetadataSource } if ( relocation.getVersion() != null ) { - artifact.setVersion( relocation.getVersion() ); + artifact.setVersionRange( VersionRange.createFromVersion( relocation.getVersion() ) ); } if ( artifact.getDependencyFilter() != null &&