Watch Aspire live streamsDocsTry Aspire

JavaAppResource.withMavenBuild

Method
📦 Aspire.Hosting.Java v13.6.5-preview.1.26559.7
interface JavaAppResource {
// ... omitted for brevity
withMavenBuild(args: string[]): JavaAppResource;
}

Signature

methodwithMavenBuildbuilder
Runs a Maven build before the Java application starts.
withMavenBuild(args: string[]): JavaAppResource
argsstring[]Arguments passed to the Maven wrapper. Defaults to `clean package`.
JavaAppResource

Defined on

This method is defined on the following type: