From 4b01d88bc3c137b76bcdf0f9deb0f2f5fd2ce025 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sat, 27 Aug 2005 13:00:33 +0000 Subject: [PATCH] trim metadata file git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@240415 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/artifact/metadata/SnapshotArtifactMetadata.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );