This project demonstrates a setup of Maven Develocity that enables and disables the plugin based on an environment variable.
The setup can be seen in the .mvn/develocity.xml
file, line 7.
There are also different run scenarios showcased in github actions:
- Run with Develocity enabled via env var
- Run with Develocity explicityl disabled via env var
- Run with Develocity enabled via a cmdline argument
- Run with Develocity enabled via env var and overriden via cmdline argument
- Run with no env var, but with access key set up
- Run with Develocity enabled, but with missing access key
- Run with no env var, nor access key (Develocity disabled - mimicking local developer with no additional setup)