Re: archiva / internal / snapshot and settings.xml

2008-03-23 Thread Brett Porter
On 24/03/2008, Jan Nielsen [EMAIL PROTECTED] wrote:
 Sorry for the pedantic question, but is archiva.default a special
  ID, or should this ID be changed to match the ID of the repository in
  the Archiva Managed Repositories section that we want * to go to?
  Or is it just specific to the mirrors elements? I suspect it's the
  latter.

Correct, it's not special.


  But, in any case, for some reason when I try mvn site I get:

I suspect this is MRM-734.

  If I try to browse to my Archiva repository I'm prompted to do
  BasicAuth; when I submit my archiva admin webapp credentials, I can
  see that my repository does not contain this plugin, but the proxy
  connector should pick that up, right? I don't know why I'm being
  prompted for BasicAuth - I didn't configure it anywhere, and I can't
  seem to turn it off, either. So, can I turn off BasicAuth? Is the
  authentication the reason I can't resolve this plugin? Or do I need a
  profile with pluginRepositories which identify this same repository as
  my plugin repository?

That might be an issue too. You can grant guest access to read the
repository (instructions are contained on the web site).

  (Side question: why do we even need to distinguish the plugin
  repository from non-plugin repositories? Isn't it just a set of
  artifacts which happen to b Maven plugins?)

Yes, it is probably something that will be deprecated in future
versions of Maven.

- Brett

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


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/