Uses of Interface
org.apache.maven.enforcer.rule.api.EnforcerRule
Packages that use EnforcerRule
-
Uses of EnforcerRule in org.apache.maven.enforcer.rule.api
Subinterfaces of EnforcerRule in org.apache.maven.enforcer.rule.apiModifier and TypeInterfaceDescriptioninterface
Interface 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 EnforcerRuleModifier and TypeMethodDescriptionboolean
EnforcerRule.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 EnforcerRuleModifier and TypeClassDescriptionclass
Abstract Rule for banning dependencies.class
The Class AbstractNonCacheableEnforcerRule.class
Abstract enforcer rule that give a foundation to validate properties from multiple sources.class
Contains the common code to compare an array of files against a requirement.class
The Class AbstractStandardEnforcerRule.class
Contains the common code to compare a version against a version range.class
Always fail.class
Always pass.class
This rule will check if a pom contains adistributionManagement
part.class
Since Maven 3 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique.class
This rule checks that lists of dependencies are not included.class
This rule checks that lists of plugins are not included.class
This rule checks that this project's maven session whether have banned repositories.class
This rule bans all transitive dependencies.class
class
Rule for Maven Enforcer using Beanshell to evaluate a conditional expression.class
Deprecated.class
This rule will check if a multi module build will follow the best practices.class
This rule checks that some profiles are active.class
This rule checks that certain environment variable is set.class
The Class RequireFilesDontExist.class
The Class RequireFilesExist.class
Rule to validate the main artifact is within certain size constraints.class
This rule checks that the Java version is allowed.class
This rule checks that the Maven version is allowed.class
This rule checks that this pom or its parents don't define a repository.class
This rule checks that the OS is allowed by combinations of family, name, version and cpu architecture.class
This rule will enforce that all plugins specified in the poms have a version declared.class
class
This rule checks that certain properties are set.class
This rule checks that no snapshots are included.class
This rule checks that the current project is not a snapshot.class
class
Rule 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 EnforcerRuleModifier and TypeFieldDescriptionprivate EnforcerRule[]
EnforceMojo.rules
Array of objects that implement the EnforcerRule interface to execute.Fields in org.apache.maven.plugins.enforcer with type parameters of type EnforcerRuleModifier and TypeFieldDescriptionprotected static Hashtable<String,
EnforcerRule> EnforceMojo.cache
This is a static variable used to persist the cached results across plugin invocations.Methods in org.apache.maven.plugins.enforcer that return EnforcerRuleMethods in org.apache.maven.plugins.enforcer with parameters of type EnforcerRuleModifier and TypeMethodDescriptionprivate EnforcerLevel
EnforceMojo.getLevel
(EnforcerRule rule) Returns the level of the rule, defaults toEnforcerLevel.ERROR
for backwards compatibility.boolean
AbstractNonCacheableEnforcerRule.isResultValid
(EnforcerRule cachedRule) boolean
AbstractRequireFiles.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.boolean
AbstractVersionEnforcer.isResultValid
(EnforcerRule theCachedRule) boolean
DependencyConvergence.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.boolean
RequireEnvironmentVariable.isResultValid
(EnforcerRule cachedRule) boolean
RequireFilesSize.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.boolean
RequireOS.isResultValid
(EnforcerRule theCachedRule) Checks if cached result is valid.void
EnforceMojo.setRules
(EnforcerRule[] theRules) protected boolean
EnforceMojo.shouldExecute
(EnforcerRule rule) This method determines if a rule should execute based on the cache
RequireReleaseDeps