Skip to content

Update installation command for maven package

What does this MR do and why?

Stop showing mvn dependency:get and show mvn install which is the most common command to install a maven package.

This is inline with our maven install docs

Why

When we open the details of a package, the UI presents a summary the commands to pull the package.

For maven packages, mvn dependency:get. The problem is that the commands provided are incomplete and will not work.

Screenshots or screen recordings

Before

Screenshot_2023-03-08_at_12.21.54_pm

After

Screenshot_2023-03-08_at_12.21.02_pm

How to set up and validate locally

  1. rails c - Open the rails console

  2. p = Project.find(1) - Find a project within GDK. Project id can be found on the project home page

  3. FactoryBot.create(:maven_package, project: p) - Create a python package within project

  4. Add this line if above fails during the creation of files

       def fixture_file_upload(*args, **kwargs)
         Rack::Test::UploadedFile.new(*args, **kwargs)
       end
  5. Find the published package in the package list page of the project & click on the package to visit the details page.

  6. Confirm that the installation command has been changed to mvn install

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #373925 (closed)

Edited by Rahul Chanila

Merge request reports