|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils
public class EnforcerRuleUtils
The Class EnforcerRuleUtils.
Constructor Summary | |
---|---|
EnforcerRuleUtils(ArtifactFactory theFactory,
ArtifactResolver theResolver,
ArtifactRepository theLocal,
List<ArtifactRepository> theRemoteRepositories,
MavenProject project,
Log theLog)
Instantiates a new enforcer rule utils. |
|
EnforcerRuleUtils(EnforcerRuleHelper helper)
Instantiates a new enforcer rule utils. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnforcerRuleUtils(ArtifactFactory theFactory, ArtifactResolver theResolver, ArtifactRepository theLocal, List<ArtifactRepository> theRemoteRepositories, MavenProject project, 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 helperMethod Detail |
---|
public List<org.apache.maven.model.Model> getModelsRecursively(String groupId, String artifactId, String version, File pom) throws ArtifactResolutionException, ArtifactNotFoundException, IOException, XmlPullParserException
groupId
- the group idartifactId
- the artifact idversion
- the versionpom
- the pom
ArtifactResolutionException
- the artifact resolution exception
ArtifactNotFoundException
- the artifact not found exception
IOException
- Signals that an I/O exception has occurred.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |