diff --git a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java index 02552356ab..d038ebe97b 100644 --- a/maven-artifact-manager/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java +++ b/maven-artifact-manager/src/main/java/org/apache/maven/artifact/metadata/SnapshotArtifactMetadata.java @@ -68,7 +68,7 @@ public class SnapshotArtifactMetadata protected void setContent( String content ) { - Matcher matcher = Artifact.VERSION_FILE_PATTERN.matcher( content ); + Matcher matcher = Artifact.VERSION_FILE_PATTERN.matcher( content.trim() ); if ( matcher.matches() ) { timestamp = matcher.group( 2 );