
org.codehaus.mojo.versions.report.DisplayPluginUpdatesReport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of versions-maven-plugin Show documentation
Show all versions of versions-maven-plugin Show documentation
Versions Plugin for Maven 2. The Versions Plugin updates the versions of components in the POM.
package org.codehaus.mojo.versions.report;
import java.util.ArrayList;
import java.util.List;
public class DisplayPluginUpdatesReport {
private final List pluginUpdates = new ArrayList();
private final List missingVersionPlugins =new ArrayList();
private boolean warnNoMinimumVersion = false;
private IncompatibleParentAndProjectMavenVersion incompatibleParentAndProjectMavenVersion;
public void addPluginUpdate(ArtifactUpdate update) {
pluginUpdates.add(update);
}
public void addMissingVersionPlugin(Dependency plugin) {
missingVersionPlugins.add(plugin);
}
public void warnNoMinimumVersion() {
warnNoMinimumVersion=true;
}
public void warn(IncompatibleParentAndProjectMavenVersion incompatibleParentAndProjectMavenVersion) {
this.incompatibleParentAndProjectMavenVersion = incompatibleParentAndProjectMavenVersion;
}
public IncompatibleParentAndProjectMavenVersion getIncompatibleParentAndProjectMavenVersion() {
return incompatibleParentAndProjectMavenVersion;
}
public List getMissingVersionPlugins() {
return missingVersionPlugins;
}
public List getPluginUpdates() {
return pluginUpdates;
}
public boolean isWarnNoMinimumVersion() {
return warnNoMinimumVersion;
}
}