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
73cc6c4a
Commit
73cc6c4a
authored
Sep 16, 2018
by
Joshua Lambert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split PAT and Job token sections
parent
c430a025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
doc/user/project/packages/maven.md
doc/user/project/packages/maven.md
+30
-2
No files found.
doc/user/project/packages/maven.md
View file @
73cc6c4a
...
...
@@ -31,7 +31,9 @@ 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
)
.
To authenticate with one of these tokens, add a corresponding section to your
### Authenticating with a Personal Access Token
To authenticate with a Personal Access Token, add a corresponding section to your
[
`settings.xml`
](
https://maven.apache.org/settings.html
)
file:
```xml
...
...
@@ -43,7 +45,7 @@ To authenticate with one of these tokens, add a corresponding section to your
<httpHeaders>
<property>
<name>Private-Token</name>
<value>REPLACE_WITH_YOUR_
DESIRED
_TOKEN</value>
<value>REPLACE_WITH_YOUR_
PERSONAL_ACCESS
_TOKEN</value>
</property>
</httpHeaders>
</configuration>
...
...
@@ -51,7 +53,33 @@ To authenticate with one of these tokens, add a corresponding section to your
</servers>
</settings>
```
You should now be able to upload Maven artifacts to your project.
### Authenticating with a CI Job Token
To authenticate with a CI Job Token, add a corresponding section to your
[
`settings.xml`
](
https://maven.apache.org/settings.html
)
file:
```xml
<settings>
<servers>
<server>
<id>gitlab-maven</id>
<configuration>
<httpHeaders>
<property>
<name>Job-Token</name>
<value>REPLACE_WITH_YOUR_CI_JOB_TOKEN</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>
```
You should now be able to upload Maven artifacts to your project.
## Configuring your project to use the GitLab Maven repository URL
...
...
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