Package | Description |
---|---|
org.apache.maven.enforcer.rule.api | |
org.apache.maven.plugins.enforcer |
Modifier and Type | Interface and Description |
---|---|
interface |
EnforcerRule2
Interface to be implemented by any rules as of version 2.0 executed by the enforcer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EnforcerRule.isResultValid(EnforcerRule cachedRule)
Checks if cached result is valid.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBanDependencies
Abstract Rule for banning dependencies.
|
class |
AbstractNonCacheableEnforcerRule
The Class AbstractNonCacheableEnforcerRule.
|
class |
AbstractPropertyEnforcerRule
Abstract enforcer rule that give a foundation to validate properties from multiple sources.
|
class |
AbstractRequireFiles
Contains the common code to compare an array of files against a requirement.
|
class |
AbstractStandardEnforcerRule
The Class AbstractStandardEnforcerRule.
|
class |
AbstractVersionEnforcer
Contains the common code to compare a version against a version range.
|
class |
AlwaysFail
Always fail.
|
class |
AlwaysPass
Always pass.
|
class |
BanDistributionManagement
This rule will check if a pom contains a
distributionManagement part. |
class |
BanDuplicatePomDependencyVersions
Since Maven 3 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique.
|
class |
BannedDependencies
This rule checks that lists of dependencies are not included.
|
class |
BannedPlugins
This rule checks that lists of plugins are not included.
|
class |
BannedRepositories
This rule checks that this project's maven session whether have banned repositories.
|
class |
BanTransitiveDependencies
This rule bans all transitive dependencies.
|
class |
DependencyConvergence |
class |
EvaluateBeanshell
Rule for Maven Enforcer using Beanshell to evaluate a conditional expression.
|
class |
NoSnapshots
Deprecated.
replaced by
RequireReleaseDeps |
class |
ReactorModuleConvergence
This rule will check if a multi module build will follow the best practices.
|
class |
RequireActiveProfile
This rule checks that some profiles are active.
|
class |
RequireEnvironmentVariable
This rule checks that certain environment variable is set.
|
class |
RequireFilesDontExist
The Class RequireFilesDontExist.
|
class |
RequireFilesExist
The Class RequireFilesExist.
|
class |
RequireFilesSize
Rule to validate the main artifact is within certain size constraints.
|
class |
RequireJavaVersion
This rule checks that the Java version is allowed.
|
class |
RequireMavenVersion
This rule checks that the Maven version is allowed.
|
class |
RequireNoRepositories
This rule checks that this pom or its parents don't define a repository.
|
class |
RequireOS
This rule checks that the OS is allowed by combinations of family, name, version and cpu architecture.
|
class |
RequirePluginVersions
This rule will enforce that all plugins specified in the poms have a version declared.
|
class |
RequirePrerequisite |
class |
RequireProperty
This rule checks that certain properties are set.
|
class |
RequireReleaseDeps
This rule checks that no snapshots are included.
|
class |
RequireReleaseVersion
This rule checks that the current project is not a snapshot.
|
class |
RequireSameVersions |
class |
RequireUpperBoundDeps
Rule to enforce that the resolved dependency is also the most recent one of all transitive dependencies.
|
Modifier and Type | Field and Description |
---|---|
private EnforcerRule[] |
EnforceMojo.rules
Array of objects that implement the EnforcerRule interface to execute.
|
Modifier and Type | Field and Description |
---|---|
protected static java.util.Hashtable<java.lang.String,EnforcerRule> |
EnforceMojo.cache
This is a static variable used to persist the cached results across plugin invocations.
|
Modifier and Type | Method and Description |
---|---|
EnforcerRule[] |
EnforceMojo.getRules() |
Modifier and Type | Method and Description |
---|---|
private EnforcerLevel |
EnforceMojo.getLevel(EnforcerRule rule)
Returns the level of the rule, defaults to
EnforcerLevel.ERROR for backwards compatibility. |
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 |
RequireOS.isResultValid(EnforcerRule theCachedRule)
Checks if cached result is valid.
|
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 |
RequireEnvironmentVariable.isResultValid(EnforcerRule cachedRule) |
boolean |
AbstractVersionEnforcer.isResultValid(EnforcerRule theCachedRule) |
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 |
AbstractNonCacheableEnforcerRule.isResultValid(EnforcerRule cachedRule) |
void |
EnforceMojo.setRules(EnforcerRule[] theRules) |
protected boolean |
EnforceMojo.shouldExecute(EnforcerRule rule)
This method determines if a rule should execute based on the cache
|