Package org.ikasan.archetype
Interface MavenCommand<RESULT>
- All Known Implementing Classes:
AbstractMavenCommand,MavenArchetypeCommand,MavenGenericCommand
public interface MavenCommand<RESULT>
Interface defining the public contract of the Maven Cammand.
- Author:
- Ikasan Development Team
-
Method Summary
Modifier and TypeMethodDescriptionexecute()Execute the Maven command.voidsetBatchMode(boolean batchmode) Allow setting of interactive (batchmode = false) or non-interactive (batchmode = true).voidsetDebug(boolean debug) Run maven command in debug.voidsetWorkingDir(File workingDir) Allow setting of the work dir within which the Maven command will execute.
-
Method Details
-
setWorkingDir
Allow setting of the work dir within which the Maven command will execute.- Parameters:
workingDir-
-
setBatchMode
void setBatchMode(boolean batchmode) Allow setting of interactive (batchmode = false) or non-interactive (batchmode = true).- Parameters:
batchmode-
-
setDebug
void setDebug(boolean debug) Run maven command in debug.- Parameters:
debug-
-
execute
RESULT execute() throws org.apache.maven.shared.invoker.MavenInvocationException, org.apache.maven.shared.utils.cli.CommandLineExceptionExecute the Maven command.- Returns:
- Throws:
org.apache.maven.shared.invoker.MavenInvocationExceptionorg.apache.maven.shared.utils.cli.CommandLineException
-