An EffectivePomLoader loads the effective pom from a Maven pom file and retrieves (parts
of) its contents.
| Type | Name and description |
|---|---|
java.lang.String |
getArtifactId()Get the artifact ID from the effective pom, possibly loading it first. |
java.util.Collection<DependencySpec> |
getDependencies()Get the dependencies from the effective pom, possibly loading it first. |
java.lang.String |
getGroupId()Get the group ID from the effective pom, possibly loading it first. |
java.util.Collection<MavenRepositorySpec> |
getRepositories()Get the repositories from the effective pom, possibly loading it first. |
java.lang.String |
getVersion()Get the version string from the effective pom, possibly loading it first. |
void |
init(java.io.File pPomFile, java.io.File pSettingsFile)Specify the pom file to load and any settings file to apply when loading the effective pom. |
Get the artifact ID from the effective pom, possibly loading it first.
Get the dependencies from the effective pom, possibly loading it first.
DependencySpec, one for each dependency in the effective
pom. The returned collection will never be null but may be empty. The Maven scope
names will be used as configuration names in the specs.Get the group ID from the effective pom, possibly loading it first.
Get the repositories from the effective pom, possibly loading it first.
MavenArtifactRepository, one for each repository in the pom.
The returned collection will never be null but may be empty.Get the version string from the effective pom, possibly loading it first.
Specify the pom file to load and any settings file to apply when loading the effective pom.
pPomFile is null.pPomFile - The pom file.pSettingsFile - Any settings file to use. If null the default Maven settings will be
used.