Watch Aspire live streamsDocsTry Aspire

JavaAppResource.withJarArtifact

Method
📦 Aspire.Hosting.Java v13.6.5-preview.1.26559.7
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

Defined on

This method is defined on the following type: