|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.enforcer.RequirePluginVersions
public class RequirePluginVersions
| Field Summary | |
|---|---|
boolean |
banLatest
The message to be printed in case the condition returns true |
boolean |
banRelease
The message to be printed in case the condition returns true |
String |
message
The message to be printed in case the condition returns true |
| Constructor Summary | |
|---|---|
RequirePluginVersions()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkIfModelMatches(String groupId,
String artifactId,
String version,
org.apache.maven.model.Model model)
|
void |
execute(org.apache.maven.shared.enforcer.rule.api.EnforcerRuleHelper helper)
|
protected List |
getAllPluginEntries(org.apache.maven.project.MavenProject project)
Gets all plugin entries in build.plugins or build.pluginManagement.plugins in this project and all parents |
protected String |
getMessage()
|
protected List |
getModelsRecursively(String groupId,
String artifactId,
String version,
File pom)
This method loops through all the parents, getting each pom model and then its parent. |
Map |
getPhaseToLifecycleMap()
|
protected boolean |
hasVersionSpecified(org.apache.maven.model.Plugin source,
List plugins)
|
protected boolean |
isBanLatest()
|
protected boolean |
isBanRelease()
|
protected void |
setBanLatest(boolean theBanLatest)
|
protected void |
setBanRelease(boolean theBanRelease)
|
protected void |
setMessage(String theMessage)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String message
public boolean banLatest
public boolean banRelease
| Constructor Detail |
|---|
public RequirePluginVersions()
| Method Detail |
|---|
public void execute(org.apache.maven.shared.enforcer.rule.api.EnforcerRuleHelper helper)
throws org.apache.maven.shared.enforcer.rule.api.EnforcerRuleException
execute in interface org.apache.maven.shared.enforcer.rule.api.EnforcerRuleorg.apache.maven.shared.enforcer.rule.api.EnforcerRuleException
protected boolean hasVersionSpecified(org.apache.maven.model.Plugin source,
List plugins)
public Map getPhaseToLifecycleMap()
throws org.apache.maven.lifecycle.LifecycleExecutionException
org.apache.maven.lifecycle.LifecycleExecutionException
protected List getModelsRecursively(String groupId,
String artifactId,
String version,
File pom)
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
groupId - artifactId - version -
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
protected List getAllPluginEntries(org.apache.maven.project.MavenProject project)
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
project -
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
protected boolean checkIfModelMatches(String groupId,
String artifactId,
String version,
org.apache.maven.model.Model model)
protected boolean isBanLatest()
protected void setBanLatest(boolean theBanLatest)
theBanLatest - the banLatest to setprotected boolean isBanRelease()
protected void setBanRelease(boolean theBanRelease)
theBanRelease - the banRelease to setprotected String getMessage()
protected void setMessage(String theMessage)
theMessage - the message to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||