Class DefaultModelVersionParser
java.lang.Object
org.apache.maven.repository.internal.DefaultModelVersionParser
- All Implemented Interfaces:
ModelVersionParser
@Named
@Singleton
public class DefaultModelVersionParser
extends Object
implements ModelVersionParser
-
Constructor Summary
ConstructorDescriptionDefaultModelVersionParser
(org.eclipse.aether.version.VersionScheme versionScheme) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkSnapshot
(String version) boolean
isSnapshot
(String version) org.apache.maven.api.Version
parseVersion
(String version) org.apache.maven.api.VersionConstraint
parseVersionConstraint
(String constraint) org.apache.maven.api.VersionRange
parseVersionRange
(String range)
-
Constructor Details
-
DefaultModelVersionParser
@Inject public DefaultModelVersionParser(org.eclipse.aether.version.VersionScheme versionScheme)
-
-
Method Details
-
parseVersion
- Specified by:
parseVersion
in interfaceModelVersionParser
-
parseVersionRange
- Specified by:
parseVersionRange
in interfaceModelVersionParser
-
isSnapshot
- Specified by:
isSnapshot
in interfaceModelVersionParser
-
checkSnapshot
-
parseVersionConstraint
- Specified by:
parseVersionConstraint
in interfaceModelVersionParser
-