0

I have the following instructions:

Download the latest jetty-console.war from Maven Central (download the jetty-console.war artifact).

So I go to the link, here: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22killbill-profiles-killbill%22

But how do I download using a command line (I am SSH'ing into my server).

Note: I have read this link, but I don't seem to be able to download the plugin based on the instructions:

A simple command line to download a remote maven2 artifact to the local repository?

In part, I cannot tell what the repo URL should be if I use it, and the command doesn't appear to download the plugin.

Community
  • 1
  • 1
Satchel
  • 16,414
  • 23
  • 106
  • 192

1 Answers1

1

Here are some generic steps:

  1. Figure out what the direct link to the file is, in your example it's this link for the war
  2. Use some command line tool to download the file

example with wget:

wget 'http://search.maven.org/remotecontent?filepath=org/kill-bill/billing/killbill-profiles-killbill/0.12.1/killbill-profiles-killbill-0.12.1.war'

Another possibility would be to rsync or scp the war from your machine

  • I had done `wget` but then when, per the instructions, I typed `java -jar killbill-*-jetty-console.war` it says it could not find it...so I wasn't sure if it was working. – Satchel Dec 18 '14 at 18:06
  • look at the name of the war, also note that war are usually not runnable as jar –  Dec 18 '14 at 18:07
  • 1
    @Angela, A .war is not a jar file, it's a web application archive. You need to deploy it to a server in order to make it work. – BackSlash Dec 18 '14 at 18:08