|
From: Frederic S. <fre...@gm...> - 2007-04-05 19:57:54
|
Yep, this happens a lot in maven since any pom can redefine more repositories definitions. So, when downloading a new pom there may be more external repositories that maven wants to access. To solve the problem there are 2 complementary ways: 1) redefine the resositoryId (central, snapshots, ...) used in all poms, to point to artifactory repositories. Usually we do this in some profiles defined in settings.xml and activated by default. In a large company you can then have multiple artifactory defintions/profiles and each developer activates the desired one. 2) Used the <mirrorOf> feature: http://www.nabble.com/artifactory-as-a-redirecting-proxy-tf3510913.html Good luck. On 4/5/07, Justin Stewart <jus...@lm...> wrote: > > > Hi, all. > I'm trying to get Artifactory working on our corporate intranet such that > we > don't have to go to the Internet for anything. I've setup a Maven project > that uses Apache ServiceMix. When starting my build, I see: > > $ mvn install > [INFO] Scanning for projects... > Downloading: > http://interalsvr:8080/artifactory/repo/org/apache/servicemix/tooling/ > jbi-maven-plugin/3.1-incubating/jbi-maven-plugin-3.1-incubating.pom > 3K downloaded > Downloading: > http://interalsvr:8080/artifactory/repo/org/apache/servicemix/tooling/ > tooling/3.1-incubating/tooling-3.1-incubating.pom > 2K downloaded > Downloading: > http://interalsvr:8080/artifactory/repo/org/apache/servicemix/servicem > ix/3.1-incubating/servicemix-3.1-incubating.pom > 71K downloaded > Downloading: > http://www.ibiblio.org/maven2/org/apache/apache/1/apache-1.pom > ... > > As you can see, the first three artifacts are successfully downloaded from > our intranet Artifact server. For the fourth one, however, Maven goes to > the Internet ibiblio site. This is what I'm hoping to eliminate - we have > this POM in our Artifactory repository. > > None of my project POMs define any repository or pluginRepository, and my > settings.xml sets the central repository setting as described in > http://www.jfrog.org/sites/artifactory/1.2/usage.html. The only thing I > can > think of is that the third artifact downloaded, > servicemix-3.1-incubating.pom, does define the "central" repository as > http://www.ibiblio.org/maven2. Could it be that this POM is overriding my > settings.xml? > If so, is this something I have any control over - other than manually > changing the POM in Artifactory to eliminate this repository setting? > If not, do you have any ideas of why Maven is automatically going to > ibiblio > for the fourth artifact, instead of our Artifactory server? > > Thanks for the help! > Justin > > > -- > View this message in context: > http://www.nabble.com/Still-going-to-ibiblio-...-tf3531938.html#a9856870 > Sent from the Artifactory-Users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Artifactory-users mailing list > Art...@li... > https://lists.sourceforge.net/lists/listinfo/artifactory-users > -- ------------------------ Frederic Simon - Senior Architect AlphaCSP Israel Malam Group Phone: +972 3 5312388 * Fax: +972 3 5312512 Mobile: +972 54 954301 13 Gosh Etzion St.,Givat Shmuel 54030, Israel http://www.alphacsp.com/ http://www.malam.com/ ------------------------ |