public class PropertyVersions extends AbstractVersionDetails
| Modifier and Type | Method and Description |
|---|---|
ArtifactAssociation[] |
getAssociations() |
String |
getName() |
org.apache.maven.artifact.versioning.ArtifactVersion |
getNewestVersion(String versionString,
Property property,
boolean allowSnapshots,
Collection<org.apache.maven.project.MavenProject> reactorProjects,
VersionsHelper helper,
boolean allowDowngrade,
Optional<Segment> upperBoundSegment)
Retrieves the newest artifact version for the given property-denoted artifact or
null if no newer
version could be found. |
org.apache.maven.artifact.versioning.ArtifactVersion |
getNewestVersion(String currentVersion,
Property property,
boolean allowSnapshots,
List<org.apache.maven.project.MavenProject> reactorProjects,
VersionsHelper helper) |
String |
getProfileId() |
VersionComparator |
getVersionComparator()
Gets the rule for version comparison of this artifact.
|
org.apache.maven.artifact.versioning.ArtifactVersion[] |
getVersions(boolean includeSnapshots)
Uses the
DefaultVersionsHelper to find all available versions that match all the associations with this
property. |
org.apache.maven.artifact.versioning.ArtifactVersion[] |
getVersions(Collection<org.apache.maven.artifact.Artifact> artifacts)
Uses the supplied
Collection of Artifact instances to see if an ArtifactVersion can be provided. |
boolean |
isAssociated() |
String |
toString() |
containsVersion, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getAllUpdates, getCurrentVersion, getLowerBound, getNewerVersions, getNewerVersions, getNewerVersions, getNewestUpdate, getNewestUpdate, getNewestUpdate, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getNewestVersion, getVersions, getVersions, getVersions, getVersions, getVersions, getVersions, isCurrentVersionDefined, isIncludeSnapshots, setCurrentVersion, setCurrentVersion, setIncludeSnapshotspublic VersionComparator getVersionComparator()
public ArtifactAssociation[] getAssociations()
public org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(Collection<org.apache.maven.artifact.Artifact> artifacts)
Collection of Artifact instances to see if an ArtifactVersion can be provided.artifacts - The Collection of Artifact instances .public org.apache.maven.artifact.versioning.ArtifactVersion[] getVersions(boolean includeSnapshots)
DefaultVersionsHelper to find all available versions that match all the associations with this
property.getVersions in interface VersionDetailsgetVersions in class AbstractVersionDetailsincludeSnapshots - Whether to include snapshot versions in our search.public String getName()
public String getProfileId()
public boolean isAssociated()
public org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(String currentVersion, Property property, boolean allowSnapshots, List<org.apache.maven.project.MavenProject> reactorProjects, VersionsHelper helper) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException, InvalidSegmentException
org.apache.maven.artifact.versioning.InvalidVersionSpecificationExceptionInvalidSegmentExceptionpublic org.apache.maven.artifact.versioning.ArtifactVersion getNewestVersion(String versionString, Property property, boolean allowSnapshots, Collection<org.apache.maven.project.MavenProject> reactorProjects, VersionsHelper helper, boolean allowDowngrade, Optional<Segment> upperBoundSegment) throws InvalidSegmentException, org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
null if no newer
version could be found.versionString - current version of the artifactproperty - property name indicating the artifactallowSnapshots - whether snapshots should be consideredreactorProjects - collection of reactor projectshelper - VersionHelper objectallowDowngrade - whether downgrades should be allowedupperBoundSegment - the upper bound segment; empty() means no upper boundInvalidSegmentException - thrown if the unchangedSegment is not valid (e.g. greater than the number
of segments in the version string)org.apache.maven.artifact.versioning.InvalidVersionSpecificationException - thrown if the version string in the property is not validCopyright © 2008–2022 MojoHaus. All rights reserved.