Add support for MAVEN_CLI_OPTS for dependency scanning

Problem to solve

Add support for MAVEN_CLI_OPTS on Dependency Scanning jobs, on the same model that was done for SAST in https://gitlab.com/gitlab-org/gitlab-ee/issues/8689.

ZD https://gitlab.zendesk.com/agent/tickets/118176

Please be careful about gitlab-org/security-products/analyzers/gemnasium-maven!10 (comment 180976793) when implementing this.

Intended users

Implementation Plan

What does success look like, and how can we measure that?

Users can supply maven variables via the pipeline or ci/cd variables.

What is the type of buyer?

GitLab Ultimate

Links / references

Edited by 🤖 GitLab Bot 🤖