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
c430a025
Commit
c430a025
authored
Sep 15, 2018
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CI_JOB_TOKEN support
parent
99e9bac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/user/project/packages/maven.md
doc/user/project/packages/maven.md
+6
-6
No files found.
doc/user/project/packages/maven.md
View file @
c430a025
...
...
@@ -24,14 +24,14 @@ You should then be able to see the **Packages** section on the left sidebar.
Next, you must configure your project to authorize with the GitLab Maven
repository.
## Auth
orizing with
the GitLab Maven repository
## Auth
enticating to
the GitLab Maven repository
If a project is private or you want to upload Maven artifacts to GitLab,
credentials will need to be provided for authorization:
credentials will need to be provided for authorization. Support is available for
[
personal access tokens
](
../../profile/personal_access_tokens.md
)
and
[
CI job tokens
](
https://docs.gitlab.com/ee/ci/variables/#predefined-variables-environment-variables
)
.
1.
Create a new
[
personal access token
](
../../profile/personal_access_tokens.md
)
with the
`api`
scope.
1.
Add a corresponding section to your
To authenticate with one of these tokens, add a corresponding section to your
[
`settings.xml`
](
https://maven.apache.org/settings.html
)
file:
```xml
...
...
@@ -43,7 +43,7 @@ credentials will need to be provided for authorization:
<httpHeaders>
<property>
<name>Private-Token</name>
<value>REPLACE_WITH_YOUR_
PERSONAL_ACCESS
_TOKEN</value>
<value>REPLACE_WITH_YOUR_
DESIRED
_TOKEN</value>
</property>
</httpHeaders>
</configuration>
...
...
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