archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Cooper <John.Coo...@smartfocus.com>
Subject RE: Search does not return .war artifacts
Date Fri, 24 Apr 2015 11:33:13 GMT
Any ideas why packaging type WAR cannot be found and yet can find and download packaging type
if set to JAR using the API? 

Thanks, John.
 
-----Original Message-----
From: John Cooper 
Sent: 21 April 2015 17:06
To: users@archiva.apache.org
Subject: Search does not return .war artifacts

Hi, I've successfully deployed my snapshot  .war files to Archiva 2.2.0 and I can wget/curl
them using the direct http address. When I try to use the API to retrieve the latest version
only POMs with packaging=jar  are found (version 0.1-SNAPSHOT) and download ok.

curl -i -o s3-util.jar -L -u user:password http://localhost/restServices/archivaServices/searchService/artifact?r=snapshots&g=com.company.backup&a=s3-util&v=LATEST

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  333k  100  333k    0     0  3538k      0 --:--:-- --:--:-- --:--:-- 3538k

Trying the same for a war packaging type  doesn't find anything

curl -i -o s3-util.war -L -u user:password "http://localhost/restServices/archivaServices/searchService/artifact?r=snapshots&g=com.company.backup&a=s3-util&v=LATEST"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

Am I missing something?

Thanks, John.


Mime
View raw message