Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

JavaAppResource.WithMavenGoal

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26565.2
type JavaAppResource interface {
// ... 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.
args[]stringAdditional arguments passed to the Maven wrapper after the goal.
JavaAppResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: