List of usage examples for org.apache.maven.artifact.versioning VersionRange createFromVersion
public static VersionRange createFromVersion(String version)
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); }