RE: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
I've run into this problem as well and from what I've seen, it is a Maven dependency that's pulling this in. I've logged a bug about it - http://jira.codehaus.org/browse/MNG-3713. The issue as I've run into is that 'maven-reporting-impl:2.0.4' [1], gets pulled in during an integration test run by maven-invoker-plugin, which pulls in 'maven:2.0.4' [2] and that has a repository entry that is 'cvs.apache.org' and doesn't disable releases. -Nathan [1] http://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.pom [2] http://repo1.maven.org/maven2/org/apache/maven/maven/2.0.4/maven-2.0.4.pom -Original Message- From: Dan Rollo [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 12:46 PM To: users@maven.apache.org Cc: [EMAIL PROTECTED] Subject: Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ? Subject: Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ? Date: Tue, 29 Jul 2008 20:38:41 -0700 To: "Maven Users List" On Tue, Jul 29, 2008 at 2:36 PM, Dan Rollo <[EMAIL PROTECTED]><[EMAIL PROTECTED]>wrote: > > 1. Why are only SOME downloads hitting: > > http://cvs.apache.org/maven-snapshot-repository/ > > when those same items exist in the normal central repo (and when I never > > define the cvs.apache.org repo anywhere)? > > > > 2. Any idea how I can workaround this issue to avoid these long download > > delays? Unfortunately, your dependencies can introduce repositories to your build. You can use mirrors in your settings.xml, specifically the * section, to prevent Maven contacting extra repos that show up. See if this helps: http://maven.apache.org/guides/mini/guide-mirror-settings.html (It's not coming from the Apache parent pom-- the section that was quoted is actually from distributionManagement, which controls where Maven publishes to, not where it retrieves from. I can tell from the scp:// url.) -- Wendy Hi Wendy, I was afraid you'd say that. The problem with any workaround involving settings.xml is it doesn't help when someone downloads my project source and builds with maven. Adding a README snippet that says: "To avoid long delays in downloading, muck with your settings.xml like so..." is really ugly, and breaks the wonderful "It just works" experience of building a new project with maven. I'm a little surprised to see this "implicit repo" introduced, as my dependencies list is pretty small (copied below from my original post). junit junit 4.3.1 test javax.xml.soap saaj-api 1.3 com.sun.xml.messaging.saaj saaj-impl 1.3 test javax.activation activation true 1.1.1 runtime Also, the only repo I explicitly include in my pom.xml is: false java.net http://download.java.net/maven/1 legacy In the interest of trying to make things better (instead of just whining), I dug into the pom.xml in my local .m2 repo of each of these deps looking for added repos. I found none. Also, there are no transitive dependencies for the above deps. Do you suspect the "implicit" repo: http://cvs.apache.org/maven-snapshot-repository/ is being added by the java.net maven1 repo somehow? And if so, any idea how to fix it (w/out mucking with settings.xml)? I'd like to understand what is really going on here, and exactly what is introducing this attempt to download from an unlisted snapshot repo. Thanks, Dan -- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
Subject: Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ? Date: Tue, 29 Jul 2008 20:38:41 -0700 To: "Maven Users List" On Tue, Jul 29, 2008 at 2:36 PM, Dan Rollo <[EMAIL PROTECTED]><[EMAIL PROTECTED]>wrote: > > 1. Why are only SOME downloads hitting: > > http://cvs.apache.org/maven-snapshot-repository/ > > when those same items exist in the normal central repo (and when I never > > define the cvs.apache.org repo anywhere)? > > > > 2. Any idea how I can workaround this issue to avoid these long download > > delays? Unfortunately, your dependencies can introduce repositories to your build. You can use mirrors in your settings.xml, specifically the * section, to prevent Maven contacting extra repos that show up. See if this helps: http://maven.apache.org/guides/mini/guide-mirror-settings.html (It's not coming from the Apache parent pom-- the section that was quoted is actually from distributionManagement, which controls where Maven publishes to, not where it retrieves from. I can tell from the scp:// url.) -- Wendy Hi Wendy, I was afraid you'd say that. The problem with any workaround involving settings.xml is it doesn't help when someone downloads my project source and builds with maven. Adding a README snippet that says: "To avoid long delays in downloading, muck with your settings.xml like so..." is really ugly, and breaks the wonderful "It just works" experience of building a new project with maven. I'm a little surprised to see this "implicit repo" introduced, as my dependencies list is pretty small (copied below from my original post). junit junit 4.3.1 test javax.xml.soap saaj-api 1.3 com.sun.xml.messaging.saaj saaj-impl 1.3 test javax.activation activation true 1.1.1 runtime Also, the only repo I explicitly include in my pom.xml is: false java.net http://download.java.net/maven/1 legacy In the interest of trying to make things better (instead of just whining), I dug into the pom.xml in my local .m2 repo of each of these deps looking for added repos. I found none. Also, there are no transitive dependencies for the above deps. Do you suspect the "implicit" repo: http://cvs.apache.org/maven-snapshot-repository/ is being added by the java.net maven1 repo somehow? And if so, any idea how to fix it (w/out mucking with settings.xml)? I'd like to understand what is really going on here, and exactly what is introducing this attempt to download from an unlisted snapshot repo. Thanks, Dan
Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
On Wednesday 30 July 2008 04:50:50 Dan Rollo wrote: > Hi Martin, > > Thanks for the reply, but I don't understand what you mean by "comment > it out"? Where exactly would I comment it out? > > I don't have any settings.xml, nor any reference to that repo in my > pom.xml. If the repo is referenced in "one of the master poms", > how/where can I comment that out? > > Dan 8<--- You have it in your local repository ~/.m2/repository if you want to change it. A better way of doing it is to add a block in your settings.xml file as Wendy suggested. Magne -- Magne Nordtveit <[EMAIL PROTECTED]> Systems Engineer Offshore Simulator Centre AS http://www.offsimcentre.no signature.asc Description: This is a digitally signed message part.
Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
On Tue, Jul 29, 2008 at 2:36 PM, Dan Rollo <[EMAIL PROTECTED]> wrote: > 1. Why are only SOME downloads hitting: > http://cvs.apache.org/maven-snapshot-repository/ > when those same items exist in the normal central repo (and when I never > define the cvs.apache.org repo anywhere)? > > 2. Any idea how I can workaround this issue to avoid these long download > delays? Unfortunately, your dependencies can introduce repositories to your build. You can use mirrors in your settings.xml, specifically the * section, to prevent Maven contacting extra repos that show up. See if this helps: http://maven.apache.org/guides/mini/guide-mirror-settings.html (It's not coming from the Apache parent pom-- the section that was quoted is actually from distributionManagement, which controls where Maven publishes to, not where it retrieves from. I can tell from the scp:// url.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
Hi Martin, Thanks for the reply, but I don't understand what you mean by "comment it out"? Where exactly would I comment it out? I don't have any settings.xml, nor any reference to that repo in my pom.xml. If the repo is referenced in "one of the master poms", how/where can I comment that out? Dan Subject: Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ? To: "Maven Users List" Dan Its a repository located in one of the master poms e.g. apache-1.pom apache.snapshots Apache Development Snapshot Repository scp://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository feel free to comment it out Martin - Original Message - From: "Dan Rollo" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 29, 2008 5:47 PM Subject: Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ? > Forgot to mention: I'm using maven 2.0.9 : > > Maven version: 2.0.9 > Java version: 1.5.0_07 > OS name: "linux" version: "2.6.24-19-generic" arch: "i386" Family: "unix" > > > Dan Rollo wrote: >> Apologies if I'm missing something obvious (and I did search the list archives without success). >> >> I have the following pom.xml defined for a project that depends on the activation.jar. I could only find that jar published on the maven 1 repo on java.net. >> >> I deleted my local .m2 repo (to make sure I didn't botch the repo/dependency configs), and I ran: mvn clean package site >> While maven is downloading all the needed plugins/deps, in the middle of the download, it starts trying to use: http://cvs.apache.org/maven-snapshot-repository/ >> for only some jars. >> The download gets stuck on these for a long time (I assume until something times out). >> >> So I have a couple questions: >> >> 1. Why are only SOME downloads hitting: http://cvs.apache.org/maven-snapshot-repository/ >> when those same items exist in the normal central repo (and when I never define the cvs.apache.org repo anywhere)? >> >> 2. Any idea how I can workaround this issue to avoid these long download delays? >> >> I tried also re-defining the "central" repo in my pom before the jsvs.net.m1 repo (hoping that might always force checking of "central" before any other repo). Didn't seem to make any difference. >> >> Thanks, >> Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
Dan Its a repository located in one of the master poms e.g. apache-1.pom apache.snapshots Apache Development Snapshot Repository scp://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository feel free to comment it out Martin - Original Message - From: "Dan Rollo" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 29, 2008 5:47 PM Subject: Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ? Forgot to mention: I'm using maven 2.0.9 : Maven version: 2.0.9 Java version: 1.5.0_07 OS name: "linux" version: "2.6.24-19-generic" arch: "i386" Family: "unix" Dan Rollo wrote: Apologies if I'm missing something obvious (and I did search the list archives without success). I have the following pom.xml defined for a project that depends on the activation.jar. I could only find that jar published on the maven 1 repo on java.net. I deleted my local .m2 repo (to make sure I didn't botch the repo/dependency configs), and I ran: mvn clean package site While maven is downloading all the needed plugins/deps, in the middle of the download, it starts trying to use: http://cvs.apache.org/maven-snapshot-repository/ for only some jars. The download gets stuck on these for a long time (I assume until something times out). So I have a couple questions: 1. Why are only SOME downloads hitting: http://cvs.apache.org/maven-snapshot-repository/ when those same items exist in the normal central repo (and when I never define the cvs.apache.org repo anywhere)? 2. Any idea how I can workaround this issue to avoid these long download delays? I tried also re-defining the "central" repo in my pom before the jsvs.net.m1 repo (hoping that might always force checking of "central" before any other repo). Didn't seem to make any difference. Thanks, Dan - 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]
Re: [m2] What triggers attempt to download from: http://cvs.apache.org/maven-snapshot-repository ?
Forgot to mention: I'm using maven 2.0.9 : Maven version: 2.0.9 Java version: 1.5.0_07 OS name: "linux" version: "2.6.24-19-generic" arch: "i386" Family: "unix" Dan Rollo wrote: Apologies if I'm missing something obvious (and I did search the list archives without success). I have the following pom.xml defined for a project that depends on the activation.jar. I could only find that jar published on the maven 1 repo on java.net. I deleted my local .m2 repo (to make sure I didn't botch the repo/dependency configs), and I ran: mvn clean package site While maven is downloading all the needed plugins/deps, in the middle of the download, it starts trying to use: http://cvs.apache.org/maven-snapshot-repository/ for only some jars. The download gets stuck on these for a long time (I assume until something times out). So I have a couple questions: 1. Why are only SOME downloads hitting: http://cvs.apache.org/maven-snapshot-repository/ when those same items exist in the normal central repo (and when I never define the cvs.apache.org repo anywhere)? 2. Any idea how I can workaround this issue to avoid these long download delays? I tried also re-defining the "central" repo in my pom before the jsvs.net.m1 repo (hoping that might always force checking of "central" before any other repo). Didn't seem to make any difference. Thanks, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]