- MicroProfile: Since Payara Micro supports this profile, it has support for Microprofile Configuration API to inject configuration properties. You can define a property file, such as resources/META-INF/microprofile-config.properties, with the following contents:
file.location=/tmp
Then, in the code, you can inject the property using the @ConfigProperty, which is provided by the microprofile-config-api library dependency:
@Inject @ConfigProperty(name = "file.location")
String fileProperty;
- Maven plugin: Payara also has Maven plugin support which can be used for generating the Uber JAR, as shown here:
<plugin>
<groupId>fish.payara.maven.plugins</groupId>
<artifactId>payara-micro-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution...