Running

The run goal runs any self-executable SeedStack application directly from the command line.

Parameters

Parameters should be given as system properties (-DparameterName=parameterValue):

Name Type Mandatory Description
args String No The string of all arguments used to run the Seed application.

Examples

Web application

By running the following command on a SeedStack application containing the seed-web-undertow dependency, you will startup the application with its embedded Undertow Web server:

mvn seedstack:run

CLI application

By running the following command on a SeedStack application containing the seed-cli dependency (like the batch sample), you will startup the application with the corresponding arguments:

mvn seedstack:run -Dargs="run-job --job helloWorldJob"

Note that a SeedStack CLI application needs at least one CommandLineHandler in the classpath which name must be specified as an argument. In this example we assume that the SeedStack Spring bridge add-on run-job command-line handler is also present in the classpath.

   

On this page


Edit