Package org.apache.maven.enforcer.rules
Class RequireMatchingCoordinates
java.lang.Object
org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
org.apache.maven.enforcer.rules.RequireMatchingCoordinates
- All Implemented Interfaces:
EnforcerRuleBase
@Named("requireMatchingCoordinates")
public final class RequireMatchingCoordinates
extends AbstractStandardEnforcerRule
This rule checks that the Maven coordinates (i.e. the project's
groupId and artifactId) each match a given pattern.- Since:
- 3.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()getLog()voidsetArtifactIdPattern(String artifactIdPattern) voidsetGroupIdPattern(String groupIdPattern) voidsetLog(EnforcerLogger arg0) voidsetModuleNameMustMatchArtifactId(boolean moduleNameMustMatchArtifactId) toString()Methods inherited from class org.apache.maven.enforcer.rules.AbstractStandardEnforcerRule
formatLocation, getMessage, setMessageMethods inherited from class org.apache.maven.enforcer.rule.api.AbstractEnforcerRule
getCacheId, getLevel, getRuleName
-
Constructor Details
-
RequireMatchingCoordinates
-
-
Method Details
-
execute
- Specified by:
executein classAbstractEnforcerRule- Throws:
EnforcerRuleException
-
setGroupIdPattern
-
setArtifactIdPattern
-
setModuleNameMustMatchArtifactId
-
toString
-
setLog
- Specified by:
setLogin interfaceEnforcerRuleBase
-
getLog
-