Hi Roman,
<profile> <id>myCompanyProfile</id> <repositories> <repository> <id>central</id> <name>My Central Repository</name> <url>http://host/abcd/...</url> </repository> <repository> <id>myTmpRepo</id> <name>Temporary Repository</name> <url>http://host/tmp/... </url> </repository> <repositories> </profile> Then, under <activeProfiles> <activeProfile>myCompanyProfile</activeProfile> </activeProfiles> ------------------------------------------------------------------------ --------------------------- But I believe, you can do the following in your POM. I have _not_ tested this. <build> . . . </build> <repositories> <repository> <id>central</id> <name>My Central Repository</name> <url>http://host/abcd/...</url> </repository> <repository> <id>myTmpRepo</id> <name>Temporary Repository</name> <url>http://host/tmp/... </url> </repository> <repositories> Thanks Lakshman > -----Original Message----- > From: Roman Gelfand [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 20 September 2006 10:59 PM > To: Lakshman Srilakshmanan; Maven Users List > Subject: RE: central Repository and mirrorOf > > Hi Lakshman, > > Thanks you for your answer. > > Between which tags <repositories> tag has to LOCATE in user's > settings.xml file? > > Thanks, > > Roman > > -----Original Message----- > From: Lakshman Srilakshmanan > [mailto:[EMAIL PROTECTED] > Sent: Monday, September 18, 2006 2:53 AM > To: Roman Gelfand > Cc: Maven Users List > Subject: RE: central Repository and mirrorOf > > Hi Roman, > > Sorry for the late reply. I was sick whole of last week, thanks to my > kids. > You would have got a quicker response if you had emailed to the user > group. > > I believe you have missed the <repositories> tag. I don't hold my > repository information in the POM. I normally declare it in the > settings.xml of the user. > > <repositories> > <repository> > <id>central</id> > <name>Internal Mirror of Central Repository</name> > <url>http://my.test.com/central</url> > </repository> > <repositories> > > Thanks > Lakshman > > > > -----Original Message----- > > From: Roman Gelfand [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 14 September 2006 4:13 PM > > To: Lakshman Srilakshmanan > > Subject: RE: central Repository and mirrorOf > > > > Hi Lakshman, > > > > Could you please help me? > > > > I put <repository> tag in my POM file, as > > > > ******************************************** > > <build> > > <sourceDirectory>checkouts</sourceDirectory> > > </build> > > <repository> > > <id>central</id> > > <name>Internal Mirror of Central Repository</name> > > <url>http://my.test.com/central</url> > > </repository> > > <dependencies> > > <dependency> > > ************************************************ > > > > > > and I get the following error: > > ************************************************ > > [INFO] Scanning for projects... > > [INFO] > > > ------------------------------------------------------------------------ > > [ERROR] FATAL ERROR > > [INFO] > > > ------------------------------------------------------------------------ > > [INFO] Error building POM (may not be this project's POM). > > > > > > Project ID: unknown > > POM Location: C:\quickbuild-1.0.9\working\root\BAC\Foundations\pom.xml > > > > Reason: Parse error reading POM. Reason: Unrecognised tag: > 'repository' > > (positio > > n: START_TAG seen ...</build>\r\n <repository>... @13:15) > > > > > > [INFO] > > > ------------------------------------------------------------------------ > > [INFO] Trace > > org.apache.maven.reactor.MavenExecutionException: Parse error reading > > POM. Reaso > > n: Unrecognised tag: 'repository' (position: START_TAG seen > > .</build>\r\n <re > > pository>... @13:15) > > > *********************************************************************** > > > > Please advise. > > > > Thank you inadvance, > > > > Roman > > > > > > -----Original Message----- > > From: Lakshman Srilakshmanan > > [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 05, 2006 11:03 AM > > To: Maven Users List > > Subject: central Repository and mirrorOf > > > > Hi All, > > > > Could someone please clarify the difference between declaring > > > > > > <mirrorOf>central</mirrorOf> > > > > and > > > > <repository> > > <id>central</id> > > <name>Internal Mirror of Central Repository</name> > > <url>http://my.test/central</url> > > </repository> > > > > > > It appears to me that maven will look at <mirrorOf> to find it's > > download. > > So what would be the difference in declaring <id>central</id>. > > > > To me it appears to be doing the same thing. I must be missing > > something. > > > > Could someone please help me to clarify this doubt > > > > Thanks > > Lakshman > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email Security System. > > For more information please visit http://www.messagelabs.com/email > > ______________________________________________________________________ > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]