Watch Aspire live streamsDocsTry Aspire

JavaAppResource.withMavenGoal

Method
📦 Aspire.Hosting.Java v13.6.5-preview.1.26559.7
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
goalstringThe Maven goal to execute.
argsstring[]Additional arguments passed to the Maven wrapper after the goal.
JavaAppResource

Defined on

This method is defined on the following type: