java-buildpack

module
v0.0.0-...-d2e13e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2019 License: MIT

README

Heroku Cloud Native Buildpack for Java

Build Status GitHub release

This is a work in progress (WIP) Heroku Cloud Native Buildpack for Java apps. It uses Maven to build your application and OpenJDK to run it. However, the JDK version can be configured as described below.

How it works

The buildpack will detect your app as Java if it has a pom.xml file, or one of the other POM formats supports by the Maven Polyglot plugin, in its root directory. It will use Maven to execute the build defined by your pom.xml and download your dependencies. The .m2 folder (local maven repository) will be cached between builds for faster dependency resolution, but neither the mvn executable or the .m2 folder will be available in the runtime image.

Usage

To use this buildpack with pack CLI run the following commands:

$ pack build image:tag --builder=heroku/buildpacks

Customizing

This buildpack supports the following environment variables for customization:

  • MAVEN_CUSTOM_GOALS
  • MAVEN_CUSTOM_OPTS
  • MAVEN_SETTINGS_PATH
  • MAVEN_SETTINGS_URL

You can select the JDK vendor and version using a system.properties file as described in the Heroku documentation on Java.

Development

Run the unit tests (no Internet required):

$ go test ./...

Run the integration tests (Internet required):

$ make test

Licence

MIT

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL