| Constructor and Description |
|---|
EnforcerRuleUtils(org.apache.maven.artifact.factory.ArtifactFactory theFactory,
org.apache.maven.artifact.resolver.ArtifactResolver theResolver,
org.apache.maven.artifact.repository.ArtifactRepository theLocal,
List<org.apache.maven.artifact.repository.ArtifactRepository> theRemoteRepositories,
org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.logging.Log theLog)
Instantiates a new enforcer rule utils.
|
EnforcerRuleUtils(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
Instantiates a new enforcer rule utils.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkIfModelMatches(String groupId,
String artifactId,
String version,
org.apache.maven.model.Model model)
Make sure the model is the one I'm expecting.
|
List<org.apache.maven.model.Model> |
getModelsRecursively(String groupId,
String artifactId,
String version,
File pom)
This method loops through all the parents, getting
each pom model and then its parent.
|
List<org.apache.maven.model.Plugin> |
resolvePlugins(List<org.apache.maven.model.Plugin> plugins) |
List<org.apache.maven.model.ReportPlugin> |
resolveReportPlugins(List<org.apache.maven.model.ReportPlugin> reportPlugins) |
public EnforcerRuleUtils(org.apache.maven.artifact.factory.ArtifactFactory theFactory,
org.apache.maven.artifact.resolver.ArtifactResolver theResolver,
org.apache.maven.artifact.repository.ArtifactRepository theLocal,
List<org.apache.maven.artifact.repository.ArtifactRepository> 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(org.apache.maven.enforcer.rule.api.EnforcerRuleHelper helper)
helper - the helperpublic List<org.apache.maven.model.Model> 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 - the group idartifactId - the artifact idversion - the versionpom - the pomorg.apache.maven.artifact.resolver.ArtifactResolutionException - the artifact resolution exceptionorg.apache.maven.artifact.resolver.ArtifactNotFoundException - the artifact not found exceptionIOException - Signals that an I/O exception has occurred.org.codehaus.plexus.util.xml.pull.XmlPullParserException - the xml pull parser exceptionprotected boolean checkIfModelMatches(String groupId, String artifactId, String version, org.apache.maven.model.Model model)
groupId - the group idartifactId - the artifact idversion - the versionmodel - Model being checked.public List<org.apache.maven.model.Plugin> resolvePlugins(List<org.apache.maven.model.Plugin> plugins)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.