Re: Multiple Repository Handling (and ibiblio fallback)

2006-10-13 Thread Arnaud Bailly
Yves Van Steen [EMAIL PROTECTED] writes:

 Hello,


Hello,


  

   mirrors

  mirror

idrepo1/id

mirrorOfcentral/mirrorOf

nameIbiblio Mirror 1/name

urlhttp://192.168.1.2:/repository/url

   /mirror

  mirror

idrepo1/id

mirrorOfcentral/mirrorOf

name Ibiblio Mirror 1/name

urlhttp://192.168.1.3:/repository/url

   /mirror

   /mirrors


Is it normal to have both mirrors with same Id ? That may be the cause
of your problem.
regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple Repository Handling (and ibiblio fallback)

2006-10-12 Thread Yves Van Steen
Hello,

 

I’m looking for some help on repository handling.

In our company we have 2 internal repository servers (both running
maven-proxy). They are also used for Ibiblio mirroring.

And they both contain 2 directories (one for snapshots and one for
releases).

This setup is complete and works like a charm.  The problem lies with the
maven configuration.

 

1)   We can set the mirror tag in the settings.xml.

This cause 2 problems.  One It always searches on one of the configured
servers. So when we need a artifact that was deployed on a other server it
can’t find it and fails.  The second problem is when I or my colleages work
on their laptop at home none of these 2 servers are available and It doesn’t
switch back to the main ibiblio server ( HYPERLINK
http://www.ibiblio.org/maven2www.ibiblio.org/maven2 ).

 

  mirrors

 mirror

   idrepo1/id

   mirrorOfcentral/mirrorOf

   nameIbiblio Mirror 1/name

   urlhttp://192.168.1.2:/repository/url

  /mirror

 mirror

   idrepo1/id

   mirrorOfcentral/mirrorOf

   name Ibiblio Mirror 1/name

   urlhttp://192.168.1.3:/repository/url

  /mirror

  /mirrors

 

2)   The other possibility is to create a profile in the settings.xml
and declare the repositories there.

The same problem occurs here there is only one repository chosen to look for
the object. So if its deploys to the other server though break.

Also the pom gets downloaded from ibiblio and the jar from the local
mirroring ibiblio server.  This you can solve with declaring the id of the
repository to central.

And again when I work at home no artefact downloading is possible because of
no access to the repositories is possible.

 

   profiles

 profile

   idmyprofile/id

   repositories

 repository

   idRepo1/id

   namerepo1/name

   urlhttp://192.168.1.3:/repository/url

 /repository

 repository

   idRepo2/id

   namerepo2/name

   urlhttp://192.168.1.2:/repository/url

 /repository

   /repositories

 /profile

 

  /profiles

  

   activeProfiles

 activeProfilemyprofile/activeProfile

 /activeProfiles

 

How do I create this setups fully automated ? Is this normal behaviour or is
this a bug.

Maven always seems to just look at one of the declared repositories.

I have tried a lot but can’t seem to get this setup up and running.

 

What we do know is when we work at home we disable a profile with the
internal repositories declared in the settings.xml and for the the 2
internal repo servers (releases and snapshots) we rsync (as a cron job) the
directories on the 2 so both servers contain the same structure and content.

 

Thanks for any assistance you can provide.

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006
 


Multiple Repository Handling (and ibiblio fallback)

2006-10-11 Thread Yves Van Steen
Hello,

 

I’m looking for some help on repository handling.

In our company we have 2 internal repository servers (both running
maven-proxy). They are also used for Ibiblio mirroring.

And they both contain 2 directories (one for snapshots and one for
releases).

This setup is complete and works like a charm.  The problem lies with the
maven configuration.

 

1)   We can set the mirror tag in the settings.xml.

This cause 2 problems.  One It always searches on one of the configured
servers. So when we need a artifact that was deployed on a other server it
can’t find it and fails.  The second problem is when I or my colleages work
on their laptop at home none of these 2 servers are available and It doesn’t
switch back to the main ibiblio server ( HYPERLINK
http://www.ibiblio.org/maven2www.ibiblio.org/maven2 ).

 

  mirrors

 mirror

   idrepo1/id

   mirrorOfcentral/mirrorOf

   nameIbiblio Mirror 1/name

   urlhttp://192.168.1.2:/repository/url

  /mirror

 mirror

   idrepo1/id

   mirrorOfcentral/mirrorOf

   name Ibiblio Mirror 1/name

   urlhttp://192.168.1.3:/repository/url

  /mirror

  /mirrors

 

2)   The other possibility is to create a profile in the settings.xml
and declare the repositories there.

The same problem occurs here there is only one repository chosen to look for
the object. So if its deploys to the other server though break.

Also the pom gets downloaded from ibiblio and the jar from the local
mirroring ibiblio server.  This you can solve with declaring the id of the
repository to central.

And again when I work at home no artefact downloading is possible because of
no access to the repositories is possible.

 

   profiles

 profile

   idmyprofile/id

   repositories

 repository

   idRepo1/id

   namerepo1/name

   urlhttp://192.168.1.3:/repository/url

 /repository

 repository

   idRepo2/id

   namerepo2/name

   urlhttp://192.168.1.2:/repository/url

 /repository

   /repositories

 /profile

 

  /profiles

  

   activeProfiles

 activeProfilemyprofile/activeProfile

 /activeProfiles

 

How do I create this setups fully automated ? Is this normal behaviour or is
this a bug.

Maven always seems to just look at one of the declared repositories.

I have tried a lot but can’t seem to get this setup up and running.

 

What we do know is when we work at home we disable a profile with the
internal repositories declared in the settings.xml and for the the 2
internal repo servers (releases and snapshots) we rsync (as a cron job) the
directories on the 2 so both servers contain the same structure and content.

 

Thanks for any assistance you can provide.

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.2/471 - Release Date: 10/10/2006