archiva / internal / snapshot and settings.xml

2008-03-20 Thread Henri Gomez
Hi to all,

My archiva proxy has a the regular 'internal' and 'snapshot' repositories.

Many proxies to apache, jboss and java.devnet, for release and/or snapshots.

ie :

urlhttp://people.apache.org/repo/m2-snapshot-repository/url
username/
password/
idapachesnapshots/id
nameApache Snapshot Repository/name
/remoteRepository

remoteRepository
urlhttp://repository.jboss.com/maven2/url
idjboss/id
nameJBoss Repository/name
/remoteRepository

All are proxied to archiva 'internal' repo.

proxyConnector
order1/order
sourceRepoIdinternal/sourceRepoId
targetRepoIdapachesnapshots/targetRepoId

...

proxyConnector
order4/order
sourceRepoIdinternal/sourceRepoId
targetRepoIdjboss/targetRepoId
...

I should mix release/snapshot since I got the following in my settings.xml :

mirror
idarchiva/id
url
http://myrepository.mycorp.com/archiva/repository/internal
/url
mirrorOf*/mirrorOf
/mirror


I wonder how I could trick my settings.xml to get ALL releases from
internal and ALL snapshots from snapshot.

Regards


Re: archiva / internal / snapshot and settings.xml

2008-03-20 Thread Brett Porter
On 20/03/2008, Henri Gomez [EMAIL PROTECTED] wrote:
  I wonder how I could trick my settings.xml to get ALL releases from
  internal and ALL snapshots from snapshot.

In Maven 2.0.8 you just need to list each snapshot repository by ID
and point it to the Archiva snapshot repo, and place it before the *
definition.

In Maven 2.0.9 there will be some include/exclude semantics for mirrorOf.

- Brett

-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: archiva / internal / snapshot and settings.xml

2008-03-20 Thread Henri Gomez
 In Maven 2.0.8 you just need to list each snapshot repository by ID
  and point it to the Archiva snapshot repo, and place it before the *
  definition.

Do you recommand avoiding MirrorOf * ?

  In Maven 2.0.9 there will be some include/exclude semantics for mirrorOf.

Hum, did the 2.0.9 include/exclude will also works with maven
2.1-SNAPSHOT, used in m2eclipse or q4e ?


Re: archiva / internal / snapshot and settings.xml

2008-03-20 Thread Brett Porter
On 21/03/2008, Henri Gomez [EMAIL PROTECTED] wrote:
  In Maven 2.0.8 you just need to list each snapshot repository by ID
and point it to the Archiva snapshot repo, and place it before the *
definition.


 Do you recommand avoiding MirrorOf * ?

No, mirrorOf * is a very useful method of locking down all access to
your managed repositories. I highly recommend it.



In Maven 2.0.9 there will be some include/exclude semantics for mirrorOf.


 Hum, did the 2.0.9 include/exclude will also works with maven
  2.1-SNAPSHOT, used in m2eclipse or q4e ?


Not yet, but I imagine it will be.

- Brett


-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Re: archiva / internal / snapshot and settings.xml

2008-03-20 Thread Henri Gomez
   Do you recommand avoiding MirrorOf * ?


 No, mirrorOf * is a very useful method of locking down all access to
  your managed repositories. I highly recommend it.

Indeed but in that case you endup mixing releases and snapshots in the
same archiva repository ;(

I suspect these couldn't works ;(

mirror
  idinternal-snapshot-repository/id
  nameMaven Repository Manager for snapshots/name
  urlhttp://repo.mycompany.com/archiva/snapshots/url
  mirrorOf*snapshots*/mirrorOf
/mirror

mirror
  idinternal-releases-repository/id
  nameMaven Repository Manager for release/name
  urlhttp://repo.mycompany.com/archiva/internal/url
  mirrorOf*/mirrorOf
/mirror



  In Maven 2.0.9 there will be some include/exclude semantics for 
 mirrorOf.
  
  
   Hum, did the 2.0.9 include/exclude will also works with maven
2.1-SNAPSHOT, used in m2eclipse or q4e ?
  


 Not yet, but I imagine it will be.


  - Brett


  --
  Brett Porter
  Blog: http://blogs.exist.com/bporter/



Re: archiva / internal / snapshot and settings.xml

2008-03-20 Thread Brett Porter
On 21/03/2008, Henri Gomez [EMAIL PROTECTED] wrote:

 mirror
   idinternal-snapshot-repository/id
   nameMaven Repository Manager for snapshots/name
   urlhttp://repo.mycompany.com/archiva/snapshots/url
   mirrorOf*snapshots*/mirrorOf
 /mirror

replace mirrorOf with a single ID, and repeat for any other snapshot
repos, and it will work. You should be using a very small set of
snapshot repositories anyway.

- Brett

-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/