|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils
public class EnforcerRuleUtils
The Class EnforcerRuleUtils.
| Constructor Summary | |
|---|---|
EnforcerRuleUtils(org.apache.maven.artifact.factory.ArtifactFactory theFactory,
org.apache.maven.artifact.resolver.ArtifactResolver theResolver,
org.apache.maven.artifact.repository.ArtifactRepository theLocal,
java.util.List theRemoteRepositories,
org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.logging.Log theLog)
Instantiates a new enforcer rule utils. |
|
EnforcerRuleUtils(EnforcerRuleHelper helper)
Instantiates a new enforcer rule utils. |
|
| Method Summary | |
|---|---|
protected boolean |
checkIfModelMatches(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
org.apache.maven.model.Model model)
Make sure the model is the one I'm expecting. |
java.util.List |
getModelsRecursively(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.io.File pom)
This method loops through all the parents, getting each pom model and then its parent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnforcerRuleUtils(org.apache.maven.artifact.factory.ArtifactFactory theFactory,
org.apache.maven.artifact.resolver.ArtifactResolver theResolver,
org.apache.maven.artifact.repository.ArtifactRepository theLocal,
java.util.List theRemoteRepositories,
org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.logging.Log theLog)
theFactory - the the factorytheResolver - the the resolvertheLocal - the the localtheRemoteRepositories - the the remote repositoriesproject - the projecttheLog - the the logpublic EnforcerRuleUtils(EnforcerRuleHelper helper)
helper - the helper| Method Detail |
|---|
public java.util.List getModelsRecursively(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.io.File pom)
throws org.apache.maven.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
java.io.IOException,
org.codehaus.plexus.util.xml.pull.XmlPullParserException
groupId - the group idartifactId - the artifact idversion - the versionpom - the pom
org.apache.maven.artifact.resolver.ArtifactResolutionException - the artifact resolution exception
org.apache.maven.artifact.resolver.ArtifactNotFoundException - the artifact not found exception
java.io.IOException - Signals that an I/O exception has occurred.
org.codehaus.plexus.util.xml.pull.XmlPullParserException - the xml pull parser exception
protected boolean checkIfModelMatches(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
org.apache.maven.model.Model model)
groupId - the group idartifactId - the artifact idversion - the versionmodel - Model being checked.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||