Didier, Nice to know that helps :)
I am not that fortunate as you are, I finally gave up the maven-proxy and work on synchronizing the central and snapshot repository to our internal server :( Regards, Green -----Original Message----- From: Didier Brichet [mailto:[EMAIL PROTECTED] Sent: 2005年11月24日 4:41 To: Maven Users List Subject: Re: [m2] can't reach maven-proxy Thank you very much for your help, Green. Using <mirror> instead of <profile> in my settings solve my problem. Now, maven reach the maven-proxy, and my internal repository is not empty. I ran all the Maven Getting Started Guide from "How do I make my first Maven project?" to "How do I create a JAR and install it in my local repository?". And I met only one connection timeout exception (my pc have a ADSL connction to internet). Regards, Didier \|/ -o o- ----------o00-(_)-00o------------- Didier BRICHET Mél : [EMAIL PROTECTED] ------oo00-----------00oo--------- Law Green-A20134 a écrit: >Didier, > >The problem is in your settings.xml file, u should not touch ><profiles><profile><repositories>...</profiles> section, please use <mirrors> >section: > > <mirrors> > <!-- mirror > | Specifies a repository mirror site to use instead of a given > repository. The repository that > | this mirror serves has an ID that matches the mirrorOf element of this > mirror. IDs are used > | for inheritance and direct lookup purposes, and must be unique across > the set of mirrors. > | > --> > <mirror> > <id>central-mirror</id> > <mirrorOf>central</mirrorOf> > <url>http://localhost:9999/repository</url> > </mirror> > <mirror> > <id>snapshot-mirror</id> > <mirrorOf>snapshot</mirrorOf> > <url>http://localhost:9999/repository</url> > </mirror> > </mirrors> > > >This setting works on my site. However, the problem I met is maven-proxy >frequently raise connection timeout exception due to bandwith problem, does >anyone has idea about how to set the timeout for maven-proxy? > >Regards, >Green > >-----Original Message----- >From: Edwin Punzalan [mailto:[EMAIL PROTECTED] >Sent: 2005年11月22日 10:31 >To: Maven Users List >Subject: Re: [m2] can't reach maven-proxy > > >You should follow the guide... > >Maven Proxy is a separate application. A webserver to be exact. When >it is already running, you will add the url of the maven-proxy >application to your project as a repository (preferably with an id >central) so your projects will look for artifacts in your local maven-proxy. > > > >Didier Brichet wrote: > > > >>Hi, >> >>thank you for your answer, Edwin. >>But what I am trying to do is to set up an internal central repository >>as wrote at >>http://maven.apache.org/guides/introduction/introduction-to-repositori >>es.html >>: >>"It is not recommended that you scrape or rsync:// a full copy of >>Ibiblio as there is a large amount of data there. You can use a >>program such as Maven Proxy, running on your internal repository's >>server, to download from the internet as required and then hold the >>artifacts in your internal repository for faster downloading later." >>When I start Maven-proxy, It is wrote in the Windows command : >>"Add the following to your ~/build.properties file: >> maven.repo.remote=http://localhost:9999/repository" >> >>But I'm using maven2. So I put the remote repository in setting.xml. >> >>What's wrong ? >> >> \|/ >> -o o- >>----------o00-(_)-00o------------- >> >>Didier BRICHET >>Mél : [EMAIL PROTECTED] >> >>------oo00-----------00oo--------- >> >> >> >>Edwin Punzalan a écrit : >> >> >> >>>Hi, are you sure its proxy you want? Proxies only forwards requests >>>from private machines to those on the internet. >>> >>>If you want maven to go to your own repository, then setup a >>>repository with id "central" so that the ibiblio repo will be >>>overridden in your pom.xml. >>> >>>Or if you want to put it in your settings.xml, use mirror. >>> >>> >>> >>> >>>Didier BRICHET wrote: >>> >>> >>> >>>>Hello, >>>> >>>>I'm trying maven in a corporate environnement. >>>>My problem is to use maven-proxy, to sit on my main server and >>>>imitate ibiblio. >>>>To do this, on a Windows XP machine with internet connection, I set >>>>my user settings (in .m2 directory) like this : >>>>|<settings> >>>><profiles> >>>> <profile> >>>> <id>myprofile</id> >>>> <repositories> >>>> <repository> >>>> <id>central</id> >>>> <name>your custom repo</name> >>>> <url>http://localhost:9999/repository</url> >>>> </repository> >>>> </repositories> >>>> <pluginRepositories> >>>> <pluginRepository> >>>> <id>central</id> >>>> <name>your custom repo</name> >>>> <url>http://localhost:9999/</url> >>>> </pluginRepository> >>>> </pluginRepositories> >>>> </profile> >>>></profiles> >>>> >>>><activeProfiles> >>>> <activeProfile>myprofile</activeProfile> >>>></activeProfiles> >>>></settings> >>>>| >>>>Maven-proxy is running well (I can administrate it with a web >>>>browser at http://localhost:9999) >>>> >>>>In a empty directory, I try this >>>>|mvn archetype:create -DgroupId=com.mycompany.app >>>>|-DartifactId=my-app| >>>> >>>>This work fine, but all downloads are done from >>>>http://repo1.maven.org/maven2 ! >>>>And not from maven-proxy ! Maven-proxy cache is empty, and these no >>>>log in it's command window. >>>>It seems that maven do not reach maven-proxy. >>>>What's wrong with my configuration ? >>>> >>>>Thank's by advance. >>>> >>>> >>>> >>>--------------------------------------------------------------------- >>>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] >> >> >> > >--------------------------------------------------------------------- >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] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
