Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

JavaAppResource.WithMavenBuild

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26565.2
type JavaAppResource interface {
// ... omitted for brevity
WithMavenBuild(args []string) JavaAppResource
}

Signature

methodWithMavenBuildbuilder
Runs a Maven build before the Java application starts.
WithMavenBuild(args []string) JavaAppResource
args[]stringArguments passed to the Maven wrapper. Defaults to clean package.
JavaAppResource

A reference to the IResourceBuilder.

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

Defined on

This method is defined on the following type: