public class DistributionManagementCheck
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.apache.maven.model.DistributionManagement |
distributionManagement |
Constructor and Description |
---|
DistributionManagementCheck(org.apache.maven.project.MavenProject project) |
Modifier and Type | Method and Description |
---|---|
void |
execute(boolean isAllowRepository,
boolean isAllowSnapshotRepository,
boolean isAllowSite) |
org.apache.maven.model.DistributionManagement |
getDistributionManagement() |
private boolean |
hasDistributionManagement() |
private boolean |
hasRepository() |
private boolean |
hasSite() |
private boolean |
hasSnapshotRepository() |
void |
setDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement) |
private org.apache.maven.model.DistributionManagement distributionManagement
public DistributionManagementCheck(org.apache.maven.project.MavenProject project)
public void execute(boolean isAllowRepository, boolean isAllowSnapshotRepository, boolean isAllowSite) throws EnforcerRuleException
EnforcerRuleException
private boolean hasRepository()
public org.apache.maven.model.DistributionManagement getDistributionManagement()
public void setDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement)
private boolean hasSnapshotRepository()
private boolean hasSite()
private boolean hasDistributionManagement()