1

In grape there is a nice way to download any artifact to repo directly, just calling something like

grape install org.apache.derby derby 10.5.3.0

As far as I understand, maven install:install goal requires pom.xml file, and maven install:install-file requires local file which you are pointing to and which you actually want to place in local repo.

Is there is any way to install any artifact to maven repo directly, without creating maven project and declaring dependency in pom.xml?

UPD: I guess the search is over. We should use dependency:get goal.

M. Justin
  • 14,487
  • 7
  • 91
  • 130
shabunc
  • 23,119
  • 19
  • 77
  • 102
  • Why do you want to do that? What's wrong with declaring it as a dependency when you need it and Maven will download it for you? – nwinkler Mar 29 '12 at 15:09
  • @nwinkler - I've expected this question) I want exactly the same thing as in grape just because I'm trying to use maven repo with grape as well. – shabunc Mar 29 '12 at 15:35
  • possible duplicate of [A simple command line to download a remote maven2 artifact to the local repository?](http://stackoverflow.com/questions/1776496/a-simple-command-line-to-download-a-remote-maven2-artifact-to-the-local-reposito) – shabunc Mar 29 '12 at 16:34
  • 1
    Does this answer your question? [A simple command line to download a remote maven2 artifact to the local repository?](https://stackoverflow.com/questions/1776496/a-simple-command-line-to-download-a-remote-maven2-artifact-to-the-local-reposito) – M. Justin Apr 13 '22 at 05:02
  • @M.Justin since it's a literally 10 years old question I don't remember exactly the context but since then yep, I've learnt how to install specific maven dependency from command line ) – shabunc Apr 13 '22 at 10:06

0 Answers0