Sometimes you only need to download artifacts using a query and via the command line
wget "http://localhost:9091/archiva/restServices/archivaServices/searchService/artifact?g=org.apache.archiva&a=archiva-model&v=LATEST"
Query parameters:
NOTE: the response is a redirect (so you need to follow redirect if you want to download the artifact). No content response is returned if the query doesn't match any artifact.