Uses of Interface
org.apache.maven.enforcer.rule.api.EnforcerRule
-
Packages that use EnforcerRule Package Description org.apache.maven.enforcer.rule.api org.apache.maven.plugins.enforcer -
-
Uses of EnforcerRule in org.apache.maven.enforcer.rule.api
Subinterfaces of EnforcerRule in org.apache.maven.enforcer.rule.api Modifier and Type Interface Description interfaceEnforcerRule2Interface to be implemented by any rules as of version 2.0 executed by the enforcer.Methods in org.apache.maven.enforcer.rule.api with parameters of type EnforcerRule Modifier and Type Method Description booleanEnforcerRule. isResultValid(EnforcerRule cachedRule)Checks if cached result is valid. -
Uses of EnforcerRule in org.apache.maven.plugins.enforcer
Classes in org.apache.maven.plugins.enforcer that implement EnforcerRule Modifier and Type Class Description classAbstractBanDependenciesAbstract Rule for banning dependencies.classAbstractNonCacheableEnforcerRuleThe Class AbstractNonCacheableEnforcerRule.classAbstractPropertyEnforcerRuleAbstract enforcer rule that give a foundation to validate properties from multiple sources.classAbstractRequireFilesContains the common code to compare an array of files against a requirement.classAbstractStandardEnforcerRuleThe Class AbstractStandardEnforcerRule.classAbstractVersionEnforcerContains the common code to compare a version against a version range.classAlwaysFailAlways fail.classAlwaysPassAlways pass.classBanDistributionManagementThis rule will check if a pom contains adistributionManagementpart.classBanDuplicatePomDependencyVersionsSince Maven 3 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique.classBannedDependenciesThis rule checks that lists of dependencies are not included.classBannedPluginsThis rule checks that lists of plugins are not included.classBannedRepositoriesThis rule checks that this project's maven session whether have banned repositories.classBanTransitiveDependenciesThis rule bans all transitive dependencies.classDependencyConvergenceclassEvaluateBeanshellRule for Maven Enforcer using Beanshell to evaluate a conditional expression.classNoSnapshotsDeprecated.replaced byRequireReleaseDepsclassReactorModuleConvergenceThis rule will check if a multi module build will follow the best practices.classRequireActiveProfileThis rule checks that some profiles are active.classRequireEnvironmentVariableThis rule checks that certain environment variable is set.classRequireFilesDontExistThe Class RequireFilesDontExist.classRequireFilesExistThe Class RequireFilesExist.classRequireFilesSizeRule to validate the main artifact is within certain size constraints.classRequireJavaVersionThis rule checks that the Java version is allowed.classRequireMavenVersionThis rule checks that the Maven version is allowed.classRequireNoRepositoriesThis rule checks that this pom or its parents don't define a repository.classRequireOSThis rule checks that the OS is allowed by combinations of family, name, version and cpu architecture.classRequirePluginVersionsThis rule will enforce that all plugins specified in the poms have a version declared.classRequirePrerequisiteclassRequirePropertyThis rule checks that certain properties are set.classRequireReleaseDepsThis rule checks that no snapshots are included.classRequireReleaseVersionThis rule checks that the current project is not a snapshot.classRequireSameVersionsclassRequireUpperBoundDepsRule to enforce that the resolved dependency is also the most recent one of all transitive dependencies.Fields in org.apache.maven.plugins.enforcer declared as EnforcerRule Modifier and Type Field Description private EnforcerRule[]EnforceMojo. rulesArray of objects that implement the EnforcerRule interface to execute.Fields in org.apache.maven.plugins.enforcer with type parameters of type EnforcerRule Modifier and Type Field Description protected static java.util.Hashtable<java.lang.String,EnforcerRule>EnforceMojo. cacheThis is a static variable used to persist the cached results across plugin invocations.Methods in org.apache.maven.plugins.enforcer that return EnforcerRule Modifier and Type Method Description EnforcerRule[]EnforceMojo. getRules()Methods in org.apache.maven.plugins.enforcer with parameters of type EnforcerRule Modifier and Type Method Description private EnforcerLevelEnforceMojo. getLevel(EnforcerRule rule)Returns the level of the rule, defaults toEnforcerLevel.ERRORfor backwards compatibility.booleanAbstractNonCacheableEnforcerRule. isResultValid(EnforcerRule cachedRule)booleanAbstractRequireFiles. isResultValid(EnforcerRule cachedRule)If the rule is cacheable and the same id is found in the cache, the stored results are passed to this method to allow double checking of the results.booleanAbstractVersionEnforcer. isResultValid(EnforcerRule theCachedRule)booleanDependencyConvergence. isResultValid(EnforcerRule rule)If the rule is cacheable and the same id is found in the cache, the stored results are passed to this method to allow double checking of the results.booleanRequireEnvironmentVariable. isResultValid(EnforcerRule cachedRule)booleanRequireFilesSize. isResultValid(EnforcerRule cachedRule)If the rule is cacheable and the same id is found in the cache, the stored results are passed to this method to allow double checking of the results.booleanRequireOS. isResultValid(EnforcerRule theCachedRule)Checks if cached result is valid.voidEnforceMojo. setRules(EnforcerRule[] theRules)protected booleanEnforceMojo. shouldExecute(EnforcerRule rule)This method determines if a rule should execute based on the cache
-