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

Self-executable SeedStack applications are applications that contains one and only one implementation of the SeedLauncher interface in their classpath, like the one provided by the seed-cli module (for command-line application) or the seed-web-undertow module (for embedded Web applications).

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 (like the catalog micro-service sample), you will startup the application with its embedded Undertow Web server:

mvn org.seedstack:seedstack-maven-plugin: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.