|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jboss.maven.plugins.test.ext.ExtenderMojo
public class ExtenderMojo
Extends the test environment by expanding the test classpath based on some external configuration. Mainly this is useful in integration testing scenarios where you want to allow end-users (testers) to supply dependencies (jdbc drivers, e.g.) and/or config (properties).
The accepted external configuration format is described by the DTD in this plugins resources (extend.dtd)
Field Summary | |
---|---|
protected org.apache.maven.artifact.resolver.ArtifactCollector |
artifactCollector
INTERNAL : Artifact collector, needed to resolve dependencies. |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
INTERNAL : Artifact factory, needed to download dependencies |
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
INTERNAL : The artifact metadata source ;) |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
INTERNAL : Artifact resolver, needed to download dependencies |
protected java.lang.String |
extenderConfig
The path to the extender configuration file to use. |
protected java.lang.String |
extenderEnv
As a matter of convenience, an extender config can name multiple environment entries. |
static java.lang.String |
FILE_SEPARATOR
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
INTERNAL : Local maven repository. |
protected org.apache.maven.project.MavenProject |
project
INTERNAL : The Maven project |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
ExtenderMojo()
|
Method Summary | |
---|---|
java.lang.String |
alignToBaseDirectory(java.lang.String path,
java.io.File basedir)
|
protected void |
attachDependencies(java.util.List dependencies)
|
protected void |
attachResources(java.util.List resources)
|
void |
enableLogging(org.codehaus.plexus.logging.Logger logger)
|
void |
execute()
|
protected void |
extendTestClasspath(Environment environment)
|
protected org.dom4j.Document |
loadExtenderConfigDocument()
|
protected Environment |
parseEnvironment()
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FILE_SEPARATOR
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected org.apache.maven.artifact.resolver.ArtifactCollector artifactCollector
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected java.lang.String extenderConfig
protected java.lang.String extenderEnv
Constructor Detail |
---|
public ExtenderMojo()
Method Detail |
---|
public void enableLogging(org.codehaus.plexus.logging.Logger logger)
enableLogging
in interface org.codehaus.plexus.logging.LogEnabled
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected Environment parseEnvironment() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.dom4j.Document loadExtenderConfigDocument() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void extendTestClasspath(Environment environment) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void attachDependencies(java.util.List dependencies) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void attachResources(java.util.List resources)
public java.lang.String alignToBaseDirectory(java.lang.String path, java.io.File basedir)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |