diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-06 18:09:37 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-06 18:09:37 +0000 |
commit | 495c22d1245b6212b21b7379a542df73dfa77206 (patch) | |
tree | 5f0f82dd6c8c4fe1c4bd411f9e398b1a6eaaa69f /doc/user/compliance/license_compliance | |
parent | f3b1e07903a7f509b11ad7cf188fac46d98f77f6 (diff) | |
download | gitlab-ce-495c22d1245b6212b21b7379a542df73dfa77206.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/user/compliance/license_compliance')
-rw-r--r-- | doc/user/compliance/license_compliance/index.md | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/doc/user/compliance/license_compliance/index.md b/doc/user/compliance/license_compliance/index.md index ef20e074b3e..87dc5406c89 100644 --- a/doc/user/compliance/license_compliance/index.md +++ b/doc/user/compliance/license_compliance/index.md @@ -191,35 +191,10 @@ If you still need to run tests during `mvn install`, add `-DskipTests=false` to #### Using private Maven repos -If you have a private Maven repository that requires login credentials, you can use the -`MAVEN_CLI_OPTS` variable to specify a custom [`settings.xml`](http://maven.apache.org/settings.html) -file. - -For example, you may have a settings file like this in your project source: - -```xml -<settings> - <servers> - <server> - <id>my-server</id> - <username>${private.username}</username> - <username>${private.password}</username> - </server> - </servers> -</settings> -``` - -You can use this file through the following declaration in your `gitlab-ci.yml` file: - -```yaml -license_scanning: - variables: - MAVEN_CLI_OPTS: --settings settings.xml -Dprivate.username=foo -Dprivate.password=bar -``` +If you have a private Maven repository which requires login credentials, +you can use the `MAVEN_CLI_OPTS` environment variable. -NOTE: **Note:** -If you don't want to expose the credentials in your `.gitlab-ci.yml` file, then -you can [set the variable in your project's settings](../../../ci/variables/README.md#via-the-ui). +Read more on [how to use private Maven repos](../../application_security/index.md#using-private-maven-repos). ### Selecting the version of Python |