Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ccddb604
Commit
ccddb604
authored
Mar 23, 2020
by
mo khan
Committed by
Achilleas Pipinellis
Mar 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document how to specify custom mvn options
parent
424778d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
doc/user/compliance/license_compliance/index.md
doc/user/compliance/license_compliance/index.md
+32
-0
No files found.
doc/user/compliance/license_compliance/index.md
View file @
ccddb604
...
...
@@ -189,6 +189,38 @@ to explicitly add `-DskipTests` to your options.
If you still need to run tests during
`mvn install`
, add
`-DskipTests=false`
to
`MAVEN_CLI_OPTS`
.
#### 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
```
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
)
.
### Selecting the version of Python
> - [Introduced](https://gitlab.com/gitlab-org/security-products/license-management/-/merge_requests/36) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 12.0.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment