@Mojo(name="bootstrap", requiresProject=false) public class BootstrapMojo extends CheckoutMojo
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
goals
The goals to run on the clean checkout of a project for the bootstrap goal.
|
private java.lang.String |
goalsDirectory
The subdirectory (under the project directory) in which to run the goals.
|
private java.io.File |
mavenHome
The path where your maven is installed
|
private java.lang.String |
profiles
A list of profiles to run with the goals.
|
Constructor and Description |
---|
BootstrapMojo() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
determineWorkingDirectoryPath(java.io.File checkoutDirectory,
java.lang.String relativePathProjectDirectory,
java.lang.String goalsDirectory)
Determines the path of the working directory.
|
void |
execute() |
private void |
runGoals(java.lang.String relativePathProjectDirectory) |
checkout, getCheckoutDirectory, getCheckoutResult, setCheckoutDirectory
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
@Parameter(property="goals") private java.lang.String goals
@Parameter(property="profiles") private java.lang.String profiles
@Parameter(property="goalsDirectory") private java.lang.String goalsDirectory
@Parameter(property="mavenHome", defaultValue="${maven.home}") private java.io.File mavenHome
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class CheckoutMojo
org.apache.maven.plugin.MojoExecutionException
private void runGoals(java.lang.String relativePathProjectDirectory) throws org.apache.maven.plugin.MojoExecutionException
relativePathProjectDirectory
- the project directory's path relative to the checkout
directory; or "" if they are the sameorg.apache.maven.plugin.MojoExecutionException
- if anyprotected java.lang.String determineWorkingDirectoryPath(java.io.File checkoutDirectory, java.lang.String relativePathProjectDirectory, java.lang.String goalsDirectory)
checkoutDirectory
- relativePathProjectDirectory
- goalsDirectory
-