Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

JavaAppResource.withMavenGoal

Method
📦 Aspire.Hosting.Java v13.6.0-preview.1.26478.8
interface JavaAppResource {
// ... omitted for brevity
withMavenGoal(
goal: string,
args: string[]): JavaAppResource;
}

Signature

methodwithMavenGoalbuilder
Launches the Java application through a Maven goal instead of `java`, for example `spring-boot:run`.
withMavenGoal(
goal: string,
args: string[]): JavaAppResource
goalstring
argsstring[]
JavaAppResource

Defined on

This method is defined on the following type: