Apache Maven Distribution Tool
Maven Distribution Tool is a tool executed daily on Maven CI server to produce a report of the different checks done on our releases.
mvn verify site
The API_TOKEN environment variable is required to authenticate HTTP requests against the
Apache Jenkins instance and other Apache infrastructure.
It is a Base64-encoded username:apitoken string used for HTTP Basic Authentication.
- Log in to the Apache Jenkins instance.
- Click your username in the top-right corner to open your user profile.
- Navigate to Security (or go directly to
https://ci-maven.apache.org/user/<your-username>/security/). - Under API Token, click Add new Token, give it a name, and click Generate.
- Copy the generated token — it will not be shown again.
Base64-encode your Jenkins username and API token, then export it:
export API_TOKEN=$(echo -n 'your-username:your-api-token' | base64)You can add this to your shell profile (~/.bashrc, ~/.zshrc, etc.) for persistence.
- Local build with site reports:
mvn verify site— the reports useAPI_TOKENto fetch data from Jenkins. - Integration tests:
mvn failsafe:integration-test— the token is passed to the failsafe plugin via theAPI_TOKENenvironment variable. - CI (Jenkins): The token is automatically injected via the
withCredentialsbinding in theJenkinsfileusing theAPI_TOKENcredential ID.