Skip to content

Files

Latest commit

1f41be8 · Jun 29, 2018

History

History

fabric8-apt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 7, 2016
May 20, 2016
Jun 29, 2018

Fabric8 APT Tool

Maven Central Javadocs

This APT plugin generates a JSON Schema file called io/fabric8/environment/schema.json inside each jar which uses CDI for your dependency injection and uses the @ConfigProperty annotation from deltaspike to inject environment variables or default values into your Java code.

The generated JSON schema document will describe all the environment variables, their types, default values and their description (if you added some javadoc for them).

These JSON schema files will also be used by the fabric8:json maven goal to list all of the environment variables and their value in the generated kubernetes JSON file.

Viewing all the environment variable injection points

If you have transitive dependencies which include the generated io/fabric8/environment/schema.json file in their jars you can view the overall list of environment variable injection points for a project via:

  mvn fabric8:describe-env

This will then list all the environment variables, their default value, type and description.

### Add it to your Maven pom.xml

To enable the fabric8 API tool then add the following to your Apache Maven pom.xml

<dependency>
    <groupId>io.fabric8</groupId>
    <artifactId>fabric8-apt</artifactId>
    <scope>provided</scope>
    <version>2.2.101</version>
</dependency>