Created
June 19, 2019 10:48
-
-
Save LukeHackett/46dfa946ac9c72dd97d9d76c2fd3a64d to your computer and use it in GitHub Desktop.
Download a nexus artifact with curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
NEXUS_ENDPOINT="http://nexus.com" | |
GROUP="com.github.lukehackett" | |
ARTIFACT="demo-applciation" | |
VERSION="1.0.0-SNAPSHOT" | |
REPO="snapshots" | |
PACKAGING="jar" | |
curl --silent --location \ | |
-o "/path/to/artifact.jar" \ | |
"${NEXUS_ENDPOINT}/service/local/artifact/maven/redirect?g=${GROUP}&a=${ARTIFACT}&v=${VERSION}&r=${REPO}&p=${PACKAGING}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment