
org.codehaus.mojo.versions.report.DisplayDependencyUpdatesReport 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.HashMap;
import java.util.List;
import java.util.Map;
public class DisplayDependencyUpdatesReport {
private final Map> updatePerSectionMap = new HashMap>(2);
public void addUpdate(String section, ArtifactUpdate update){
if ( !updatePerSectionMap.containsKey(section)){
updatePerSectionMap.put(section, new ArrayList());
}
updatePerSectionMap.get(section).add(update);
}
public Map> getUpdatePerSectionMap() {
return updatePerSectionMap;
}
}