@Mojo(name="test-prepare", defaultPhase=INITIALIZE, requiresDependencyCollection=TEST, requiresDependencyResolution=TEST) public class TestPrepareMojo extends AbstractPrepareMojo
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.project.MavenProject |
project |
protected org.eclipse.aether.RepositorySystem |
repositorySystem |
protected org.eclipse.aether.RepositorySystemSession |
repositorySystemSession |
protected File |
target
Build.getTestOutputDirectory() . |
protected boolean |
verbose
verbose parameter. |
protected Properties |
weaverConfig
weaver.config parameter. |
Constructor and Description |
---|
TestPrepareMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute this mojo.
|
protected File |
getTarget()
Get the target directory for this prepare mojo.
|
doExecute
@Parameter(readonly=true, required=true, defaultValue="${project.build.testOutputDirectory}") protected File target
Build.getTestOutputDirectory()
.@Parameter(defaultValue="false") protected boolean verbose
verbose
parameter.@Parameter(property="weaver.config", required=false) protected Properties weaverConfig
weaver.config
parameter.@Parameter(defaultValue="${project}") protected org.apache.maven.project.MavenProject project
@Component protected org.eclipse.aether.RepositorySystem repositorySystem
@Parameter(defaultValue="${repositorySystemSession}", readonly=true) protected org.eclipse.aether.RepositorySystemSession repositorySystemSession
Copyright © 2018 The Apache Software Foundation. All rights reserved.