withMavenBuild

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26567.5
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

Applies to

This method applies to the following types: