@Component(role=VersionsEngine.class, instantiationStrategy="per-lookup") public class VersionsEngine extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
VersionsEngine.PropertyChange |
Modifier and Type | Field and Description |
---|---|
private org.codehaus.plexus.logging.Logger |
logger |
private java.util.List<MetadataManipulator> |
manipulators |
private java.util.Set<VersionChange> |
originalVersionChanges |
private MetadataManipulator |
pomManipulator |
private java.util.Collection<ProjectMetadata> |
projects |
private java.util.Set<VersionsEngine.PropertyChange> |
propertyChanges |
private boolean |
updateVersionRangeMatchingBounds |
Constructor and Description |
---|
VersionsEngine() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChange(java.lang.String artifactId,
java.lang.String propertyName,
java.lang.String propertyValue) |
void |
addVersionChange(java.lang.String artifactId,
java.lang.String newVersion) |
void |
addVersionChange(VersionChange change) |
void |
apply() |
private PomFile |
getMutablePom(java.lang.String artifactId) |
private ProjectMetadata |
getProject(java.lang.String artifactId) |
boolean |
isUpdateVersionRangeMatchingBounds() |
void |
setProjects(java.util.Collection<ProjectMetadata> projects) |
void |
setUpdateVersionRangeMatchingBounds(boolean updateVersionRangeMatchingBounds) |
@Requirement private org.codehaus.plexus.logging.Logger logger
@Requirement(role=MetadataManipulator.class) private java.util.List<MetadataManipulator> manipulators
@Requirement(hint="pom") private MetadataManipulator pomManipulator
private java.util.Collection<ProjectMetadata> projects
private java.util.Set<VersionChange> originalVersionChanges
private java.util.Set<VersionsEngine.PropertyChange> propertyChanges
private boolean updateVersionRangeMatchingBounds
public boolean isUpdateVersionRangeMatchingBounds()
public void setUpdateVersionRangeMatchingBounds(boolean updateVersionRangeMatchingBounds)
public void setProjects(java.util.Collection<ProjectMetadata> projects)
public void addVersionChange(java.lang.String artifactId, java.lang.String newVersion) throws java.io.IOException
java.io.IOException
private PomFile getMutablePom(java.lang.String artifactId) throws java.io.IOException
java.io.IOException
public void addVersionChange(VersionChange change)
public void apply() throws java.io.IOException
java.io.IOException
private ProjectMetadata getProject(java.lang.String artifactId)
public void addPropertyChange(java.lang.String artifactId, java.lang.String propertyName, java.lang.String propertyValue) throws java.io.IOException
java.io.IOException