title: How can I download a maven package from GitLab with curl or wget?
body: <p>I have a maven package (<code>dummy</code>) in my Gitlab Package Registry that I want download with a <code>curl</code> or <code>wget</code> command.</p>
  <p>Following <a href="https://docs.gitlab.com/ee/user/packages/generic_packages/#download-package-file" rel="nofollow noreferrer">this</a> I tried:</p>
  <pre><code>curl --user &quot;username:DEPLOY_TOKEN&quot; \
       &quot;https://gitlab.com/api/v4/projects/666/packages/maven/dummy/0.0.1-SNAPSHOT/dummy-0.0.1-SNAPSHOT.jar&quot;
  </code></pre>
  <p>but I have:</p>
  <pre><code>{&quot;message&quot;:&quot;404 Project Not Found&quot;}
  </code></pre>
  <p>The project id is correct.</p>
  <p>How can I download the maven package?</p>