Project 'gitlab-org/gitlab-ee' was moved to 'gitlab-org/gitlab'. Please update any links and bookmarks that may still have the old path.
Adds support to upload and download maven packages from/to GitLab
-
Review changes -
-
Download -
Patches
-
Plain diff
Merged
Dmytro Zaporozhets (DZ) requested to merge 5811-add-maven-support-to-our-artifact-repository-mvc into master
What does this MR do?
Adds support to upload and download maven packages from GitLab.
- I tested upload with for both
mvn deploy
andmvn release:perform
. - EEP feature; must be enabled in config
- Uses workhorse file upload
- Should be compatible with object storage
Why was this MR needed?
So people can add GitLab to their pom.xml
file and upload/download packages from GitLab
How to test
- Checkhout this branch
- Get workhorse changes gitlab-workhorse!283 (comment 91229181)
- Setup
~/.m2/settings.xml
with username and token. See doc in diff for example - Create maven project and add GitLab repo to
pom.xml
. See doc in diff for example
Screenshots (if relevant)
No UI here. UI is in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6781/diffs
Here is terminal output from mvn deploy
:
dzaporozhets:~/Projects/mvn-example master
→ mvn deploy
...
[INFO] --- maven-install-plugin:2.4:install (default-install) @ my-app ---
[INFO] Installing /Users/dzaporozhets/Projects/mvn-example/target/my-app-1.1-SNAPSHOT.jar to /Users/dzaporozhets/.m2/repository/com/mycompany/app/my-app/1.1-SNAPSHOT/my-app-1.1-SNAPSHOT.jar
[INFO] Installing /Users/dzaporozhets/Projects/mvn-example/pom.xml to /Users/dzaporozhets/.m2/repository/com/mycompany/app/my-app/1.1-SNAPSHOT/my-app-1.1-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ my-app ---
Downloading from gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/maven-metadata.xml
Downloaded from gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/maven-metadata.xml (767 B at 118 B/s)
Uploading to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/my-app-1.1-20180806.161455-3.jar
Uploaded to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/my-app-1.1-20180806.161455-3.jar (2.6 kB at 3.3 kB/s)
Uploading to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/my-app-1.1-20180806.161455-3.pom
Uploaded to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/my-app-1.1-20180806.161455-3.pom (2.0 kB at 3.1 kB/s)
Downloading from gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/maven-metadata.xml
Downloaded from gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/maven-metadata.xml (319 B at 809 B/s)
Uploading to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/maven-metadata.xml
Uploaded to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/1.1-SNAPSHOT/maven-metadata.xml (767 B at 1.1 kB/s)
Uploading to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/maven-metadata.xml
Uploaded to gitlab-maven: http://localhost:3001/api/v4/projects/1/packages/maven/com/mycompany/app/my-app/maven-metadata.xml (319 B at 50 B/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.331 s
[INFO] Finished at: 2018-08-06T19:15:04+03:00
[INFO] Final Memory: 16M/55M
[INFO] ------------------------------------------------------------------------
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Conforms to the code review guidelines
- [-] Has been reviewed by a UX Designer
- [-] Has been reviewed by a Frontend maintainer
-
Has been reviewed by a Backend maintainer -
Has been reviewed by a Database specialist
-
EE specific content should be in the top level /ee
folder -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
If you have multiple commits, please combine them into a few logically organized commits by squashing them - [-] Internationalization required/considered
-
If paid feature, have we considered GitLab.com plan and how it works for groups and is there a design for promoting it to users who aren't on the correct plan -
End-to-end tests pass ( package-and-qa
manual pipeline job)
What are the relevant issue numbers?
Closes #5811 (closed)
Edited by Dmytro Zaporozhets (DZ)
Merge request reports
Compare and
Show latest version
- version 521efbbeb2
- version 51f7194365
- version 50af4a4ef0
- version 4962874176
- version 48ae7687f8
- version 47b71743c4
- version 463604fd38
- version 452bb221f0
- version 44177bcec7
- version 432ada781d
- version 42c77e4bbc
- version 41afc34eab
- version 4095ac4b9c
- version 396b184a13
- version 38d8907e96
- version 3733cff6e1
- version 3697298725
- version 35dbc56a18
- version 34d743e229
- version 33a636b1af
- version 32e05e9d6e
- version 31514e1117
- version 30813dbddb
- version 2935eb1a4a
- version 282b1f77a4
- version 27324801db
- version 26505b86b3
- version 2587a434c9
- version 248a66492f
- version 2317c9b2e1
- version 22e967f657
- version 215f595991
- version 20d5c6be46
- version 190b53e667
- version 18fec8bd2c
- version 176d864df5
- version 160dd5e9c1
- version 15d5ed1242
- version 1438d8b47f
- version 1311552b10
- version 125addd652
- version 1176fd0dac
- version 1028825f40
- version 919e46343
- version 882b186e7
- version 76769b9d0
- version 6b2d34209
- version 55f425c73
- version 4506eff26
- version 3a6ddc13d
- version 20809d2cd
- version 1cb9f4709
- master (base)
- latest version3b0f785155 commits,
- version 521efbbeb254 commits,
- version 51f719436553 commits,
- version 50af4a4ef051 commits,
- version 496287417650 commits,
- version 48ae7687f849 commits,
- version 47b71743c448 commits,
- version 463604fd3847 commits,
- version 452bb221f045 commits,
- version 44177bcec745 commits,
- version 432ada781d45 commits,
- version 42c77e4bbc44 commits,
- version 41afc34eab44 commits,
- version 4095ac4b9c43 commits,
- version 396b184a1342 commits,
- version 38d8907e9641 commits,
- version 3733cff6e140 commits,
- version 369729872538 commits,
- version 35dbc56a1837 commits,
- version 34d743e22936 commits,
- version 33a636b1af35 commits,
- version 32e05e9d6e34 commits,
- version 31514e111734 commits,
- version 30813dbddb33 commits,
- version 2935eb1a4a32 commits,
- version 282b1f77a431 commits,
- version 27324801db30 commits,
- version 26505b86b329 commits,
- version 2587a434c928 commits,
- version 248a66492f27 commits,
- version 2317c9b2e126 commits,
- version 22e967f65725 commits,
- version 215f59599125 commits,
- version 20d5c6be4624 commits,
- version 190b53e66719 commits,
- version 18fec8bd2c19 commits,
- version 176d864df518 commits,
- version 160dd5e9c117 commits,
- version 15d5ed124216 commits,
- version 1438d8b47f15 commits,
- version 1311552b1013 commits,
- version 125addd65212 commits,
- version 1176fd0dac11 commits,
- version 1028825f4011 commits,
- version 919e463439 commits,
- version 882b186e78 commits,
- version 76769b9d07 commits,
- version 6b2d342096 commits,
- version 55f425c735 commits,
- version 4506eff264 commits,
- version 3a6ddc13d3 commits,
- version 20809d2cd2 commits,
- version 1cb9f47091 commit,
6 files
+ 48
− 36
Compare changes
- Side-by-side
- Inline
Files
6+ 14
− 0
Loading