modding ArtifactUtils.isSnapshot(version) to also check for SNAPSHOT suffix.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289313 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-09-15 20:54:09 +00:00
parent 75ac363378
commit 8efd4bce77
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ private ArtifactUtils()
public static boolean isSnapshot( String version )
{
return version != null && Artifact.VERSION_FILE_PATTERN.matcher( version ).matches();
return version != null && ( version.toUpperCase().endsWith( "SNAPSHOT" ) || Artifact.VERSION_FILE_PATTERN.matcher( version ).matches() );
}
public static String versionlessKey( Artifact artifact )