The maven-proxy configuration is completely separate from the
settings.xml You want to set a mirror of central on each dev machine.
This will redirect everything (except snapshots because the superpom has
snapshots=false. If you need snapshots, you'll have to add a repository
to the settings or pom and turn them on) to your internal proxy. On that
proxy, configure it to only have one repository pointing to your other
proxy. The order of the repositories for MP to search is controlled like
this: (in the maven-proxy.properties)

################# REPOSITORIES
#This is not just a hack, it specifies the order repositories should be
checked
#Note that the proxy adds a "/" which is why the urls aren't suffixed
with a "/"
repo.list=stc-repo,3rdparty-repo,www-ibiblio-org,dist-codehaus-org 

Then you configure each repo named like this: (the format is repo.[name
listed above].property=value)

#local-store
# The local store represents a location that local jars you host can be
located.
# This could also be achieved by having a local http repository, but
this is less cumbersome
repo.stc-repo.url=file:///d:/repositories/maven/stc
repo.stc-repo.description=STC Central Repository
#If copy is true, jars are copied from the store to the proxy-repo. Only
configurable for file:/// repos
repo.stc-repo.copy=false
#If hardfail is true, any unexpected errors from the repository will
cause 
#the client download to fail (typically with a 500 error)
repo.stc-repo.hardfail=true
#Don't cache a file repository
repo.stc-repo.cache.period=0



#local-store
# The local store represents a location that local jars you host can be
located.
# This could also be achieved by having a local http repository, but
this is less cumbersome
repo.3rdparty-repo.url=file:///d:/repositories/maven/3rd-party
repo.3rdparty-repo.description=STC Central Repository
#If copy is true, jars are copied from the store to the proxy-repo. Only
configurable for file:/// repos
repo.3rdparty-repo.copy=false
#If hardfail is true, any unexpected errors from the repository will
cause 
#the client download to fail (typically with a 500 error)
repo.3rdparty-repo.hardfail=true
#Don't cache a file repository
repo.3rdparty-repo.cache.period=0


#www.ibiblio.org
repo.www-ibiblio-org.url=http://www.ibiblio.org/maven2
repo.www-ibiblio-org.description=www.ibiblio.org
repo.www-ibiblio-org.proxy=one
repo.www-ibiblio-org.hardfail=true
#Cache this repository for 1 hour
repo.www-ibiblio-org.cache.period=0
repo.www-ibiblio-org.cache.failures=true


You can see in my instance, I check 2 internal repositories before going
to ibiblio. On the second proxy, you'll want it to be configured to go
to ibiblio and anywhere else you need to get stuff from.


-----Original Message-----
From: Tom Joad [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 30, 2005 11:04 AM
To: Maven Users List
Subject: Id of company repository

Hello all,
I want to set up a two level of maven-proxy.
The firts one is located on a machine with internet connection. The
second one is such that it's a mirror of the first one and installed on
a machine with no internet connexion. But Developpers must reference the
second instead of the first.(This is a constraint of security,
implemented by the use
of different level of private networking)   Logically, On each
developper's settings.xml, I must declare mirror tags. My problem is to
give a value to mirrorof tag.
If I give central or other public maven mirror , the download processing
try to go directly on internet and fails(no internet
connection)
My question:
1- is my configuration possible?
2- If so How an where i declare the Id of my first repository such it is
known by all my maven installations?

Thanks in advance ,

Tom.

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




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

Reply via email to