Package org.apache.maven.enforcer.rules
Class BanDistributionManagement.DistributionManagementCheck
- java.lang.Object
-
- org.apache.maven.enforcer.rules.BanDistributionManagement.DistributionManagementCheck
-
- Enclosing class:
- BanDistributionManagement
private static class BanDistributionManagement.DistributionManagementCheck extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.model.DistributionManagement
distributionManagement
-
Constructor Summary
Constructors Constructor Description DistributionManagementCheck(org.apache.maven.project.MavenProject project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
execute
public void execute(boolean isAllowRepository, boolean isAllowSnapshotRepository, boolean isAllowSite) throws EnforcerRuleException
- Throws:
EnforcerRuleException
-
hasRepository
private boolean hasRepository()
-
getDistributionManagement
public org.apache.maven.model.DistributionManagement getDistributionManagement()
-
setDistributionManagement
public void setDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement)
-
hasSnapshotRepository
private boolean hasSnapshotRepository()
-
hasSite
private boolean hasSite()
-
hasDistributionManagement
private boolean hasDistributionManagement()
-
-