class EffectivePomLoaderImpl extends java.lang.Object
Implementation of EffectivePomLoader based on the Maven libraries. This class should not
be loaded before the Maven libraries are available on the class path.
| Type | Name and description |
|---|---|
java.lang.String |
getArtifactId()Get the artifact ID from the effective pom. |
java.util.Collection<DependencySpec> |
getDependencies()Get the dependencies from the effective pom. |
java.lang.String |
getGroupId()Get the group ID from the effective pom. |
java.util.Collection<MavenRepositorySpec> |
getRepositories()Get the repositories from the effective pom. |
java.lang.String |
getVersion()Get the version string from the effective pom. |
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. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the artifact ID from the effective pom. This will cause the effective pom to be loaded
from the file specified in init if that hasn't been done before.
Get the dependencies from the effective pom. This will cause the effective pom to be loaded
from the file specified in init if that hasn't been done before.
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. This will cause the effective pom to be loaded
from the file specified in init if that hasn't been done before.
Get the repositories from the effective pom.
MavenRepositorySpec, 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. This will cause the effective pom to be loaded
from the file specified in init if that hasn't been done before.
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.