mirror of https://github.com/apache/maven.git
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:
parent
75ac363378
commit
8efd4bce77
|
@ -30,7 +30,7 @@ public final class 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 )
|
||||
|
|
Loading…
Reference in New Issue