Example usage for org.apache.maven.artifact.versioning VersionRange createFromVersion

List of usage examples for org.apache.maven.artifact.versioning VersionRange createFromVersion

Introduction

In this page you can find the example usage for org.apache.maven.artifact.versioning VersionRange createFromVersion.

Prototype

public static VersionRange createFromVersion(String version) 

Source Link

Usage

From source file:uk.ac.ox.oucs.plugins.CustomArtifactFactory.java

License:Apache License

private Artifact createArtifact(String groupId, String artifactId, String version, String scope, String type,
        String classifier, String inheritedScope) {
    VersionRange versionRange = null;//from  w ww  .  j a  v a 2 s  .c o m
    if (version != null) {
        versionRange = VersionRange.createFromVersion(version);
    }
    return createArtifact(groupId, artifactId, versionRange, type, classifier, scope, inheritedScope);
}