archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Graglia <jgrag...@netceler.com>
Subject Re: How to deploy-file or "upload artifact" webpage a "tests" artifacts to snapshosts repository
Date Mon, 15 Nov 2010 13:19:38 GMT
Le lundi 15 novembre 2010 à 23:09 +1100, Brett Porter a écrit :

> This is a relevant feature request: 
> http://jira.codehaus.org/browse/MRM-875
> http://jira.codehaus.org/browse/MRM-1357
> 
> Since you are using Maven 3, it should work - each snapshot will get a different number,
but Maven 3 clients will correctly get the right one for the classifier requested as the metadata
differentiates them?
> 
> Is that not what you are seeing?


no, the previous uploaded artefact is removed from archiva when I deploy
the other classifier.
ie. 
deploy-file  .. classifier=tests..
in archiva repositoy, I have found xxxx;0.2-timestamp-tests.jar +
metadata
then I deploy-file  .. 
in archiva repositoy, I have only found xxxx;0.2-different_timestamp.jar
+ metadata.
 -tests.jar has been removed.

I found a workaround to that pb  ; 
deploy-file  .. classifier=tests..
In archiva repo, copy  -tests.jar  in another folder
deploy-file  ..
In archiva repo,  rename std jar : xxx-0.2-SNAPSHOT.jar and move backup
of -tests.jar with name xxx.-0.2-SNAPSHOT-tests.jar. then remove all
xml, sha1, md5 from folder 0.2-SNAPSHOT (I also remove metadata.xml at
same level that folder 0.2-SNAPSHOT)
then restart archiva
and force a repository scan

With that sequence, I successfully get 0.2-SNAPSHOT version with jar AND
-tests.jar that my maven3 client can download.


> 
> Cheers,
> Brett
> 
> On 15/11/2010, at 7:59 PM, Julien Graglia wrote:
> 
> > Hi,
> > 
> > I wonder how I could upload to archiva both jars, tests-jars (and
> > eventually sources and tests-sources, but this is optionnal) to a
> > *snapshot* repository in archiva.
> > 
> > I try by the webpage, or by running mvn deploy-file with tests
> > classifier but I can't get it to work
> > 
> > Maven 3
> > Archiva 1.3.1
> > 
> > In facts this is the same pb that described in  : 
> > http://stackoverflow.com/questions/2606106/maven-deploydeploy-file-not-found-due-to-version-timestamp-appended-to-jar
> > http://stackoverflow.com/questions/2606554/deploying-non-maven-based-module-src-and-tests-jar-to-archiva-in-a-single-transac
> > 
> > PS : when I deploy a release version, it seems to work, but I do need
> > the snasphots ones..
> > --
> > Julien Graglia 
> 
> --
> Brett Porter
> brett@apache.org
> http://brettporter.wordpress.com/
> 
> 
> 
> 


-- 
Julien Graglia
Responsable Service Technique et R&D
Tél. 04 92 57 12 12
www.netceler.com

Ce message et toutes les pièces jointes sont confidentiels. Merci de ne
pas les utiliser ou les diffuser sans l'accord de leur émetteur.


________________________________________________________________________



NetCeler - L'innovation durable au service des m&#-1;ers

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message