Package com.jcabi.dynamodb.maven.plugin
Class StartMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.jcabi.dynamodb.maven.plugin.StartMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(threadSafe=true, name="start", defaultPhase=PRE_INTEGRATION_TEST) public final class StartMojo extends org.apache.maven.plugin.AbstractMojo
Starts DynamoDB Local.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description StartMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>
args()
Command line arguments.protected File
distdir()
Location of DynamoDB Local distribution.void
environment()
Set the project environment.void
execute()
protected File
homedir()
Java home directory, where "bin/java" can be executed.void
run(Instances instances)
Run custom functionality.void
setSkip(boolean skp)
Set skip option.protected int
tcpPort()
Get TCP port we're on.
-
-
-
Method Detail
-
run
public void run(Instances instances) throws org.apache.maven.plugin.MojoFailureException
Run custom functionality.- Parameters:
instances
- Instances to work with- Throws:
org.apache.maven.plugin.MojoFailureException
- If fails
-
environment
public void environment() throws org.apache.maven.plugin.MojoFailureException
Set the project environment.AbstractEnviromentMojo
.- Throws:
org.apache.maven.plugin.MojoFailureException
- If fails
-
distdir
protected File distdir()
Location of DynamoDB Local distribution.- Returns:
- File dist
-
homedir
protected File homedir()
Java home directory, where "bin/java" can be executed.- Returns:
- File home
-
setSkip
public final void setSkip(boolean skp)
Set skip option.- Parameters:
skp
- Shall we skip execution?
-
execute
public final void execute() throws org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoFailureException
-
tcpPort
protected final int tcpPort()
Get TCP port we're on.- Returns:
- Port number
-
-