withJarArtifact

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26567.5
interface JavaAppResource {
// ... omitted for brevity
withJarArtifact(jarPath: string): JavaAppResource;
}

Signature

methodwithJarArtifactbuilder
Selects the JAR the generated container image runs, for projects whose build produces more than one.
withJarArtifact(jarPath: string): JavaAppResource
jarPathstringThe path to the JAR produced by the build, relative to the application directory, for example `target/app.jar`.
JavaAppResource

Applies to

This method applies to the following types: