Re: Problem by Using Mirrors for Repositories
Read the bug. Maven incorrectly reports that it is downloading from Central, when it is in fact downloading from your mirror. To confirm this, you can run a network sniffer to see where the traffic is actually coming from. Wayne On 1/3/08, Thomas Chang <[EMAIL PROTECTED]> wrote: > In my "settings.xml" there is just one as follow: > ... > > MyRepo > * > My repository on remote server > file:sap-dev/CVSREPOS/CvsMaven > > > ... > > . But I can see that it downloads from central as follow: > > Downloading: > http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv > ity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.pom > 772b downloaded > > Wendy Smoak <[EMAIL PROTECTED]> schrieb: On Jan 3, 2008 11:07 AM, Thomas > Chang wrote: > > > I set in my "settings.xml" my mirrors as follow: > > ... > > > > But as I run maven command such as mvn clean, it download the dependencies > not from my mirror but from central. The connection to > "file:sap-dev/CVSREPOS/CvsMave" is ok. > > > > Someone know why? > > Are you basing your statement that it is checking central on the > messages it prints out, or are you actually watching network traffic? > > IME it does use the mirror, but the messages still have the original > url. See http://jira.codehaus.org/browse/MNG-1914 > > -- > Wendy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu > Ihrer Startseite! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem by Using Mirrors for Repositories
In my "settings.xml" there is just one as follow: ... MyRepo * My repository on remote server file:sap-dev/CVSREPOS/CvsMaven ... . But I can see that it downloads from central as follow: Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv ity-jline/1.0-alpha-5/plexus-interactivity-jline-1.0-alpha-5.pom 772b downloaded Wendy Smoak <[EMAIL PROTECTED]> schrieb: On Jan 3, 2008 11:07 AM, Thomas Chang wrote: > I set in my "settings.xml" my mirrors as follow: > ... > > But as I run maven command such as mvn clean, it download the dependencies > not from my mirror but from central. The connection to > "file:sap-dev/CVSREPOS/CvsMave" is ok. > > Someone know why? Are you basing your statement that it is checking central on the messages it prints out, or are you actually watching network traffic? IME it does use the mirror, but the messages still have the original url. See http://jira.codehaus.org/browse/MNG-1914 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!
Re: Problem by Using Mirrors for Repositories
On Jan 3, 2008 11:07 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > I set in my "settings.xml" my mirrors as follow: > ... > > But as I run maven command such as mvn clean, it download the dependencies > not from my mirror but from central. The connection to > "file:sap-dev/CVSREPOS/CvsMave" is ok. > > Someone know why? Are you basing your statement that it is checking central on the messages it prints out, or are you actually watching network traffic? IME it does use the mirror, but the messages still have the original url. See http://jira.codehaus.org/browse/MNG-1914 -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem by Using Mirrors for Repositories
You are right. Thanks! > Hi all, > > I set my "settings.xml" so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. > > The setting in my "settings.xml" looks as follow. > > Does someone know what's wrong? > > Regards > > Thomas > > ... > > MyMirrorId > * > Dependencies for DKV Projects > file://sap-dev/CVSREPO/CvsMaven > > ... > > The connection to file://sap-dev/CVSREPO/CvsMaven is ok. But as I want to run maven such as "mvn eclipse:eclipse" I got error as follow: Is this an UNC name (\\server\share\path\to\file)? If yes, try to use an URL of this form: file:sap-dev/CVSREPO/CvsMaven - Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail.
Re: Problem by Using Mirrors for Repositories
On Dec 28, 2007 9:05 AM, Thomas Chang <[EMAIL PROTECTED]> wrote: > Hi all, > > I set my "settings.xml" so it will download the dependencies not from the > central (i.g. http://repo1.maven.org/maven2) but from my repository on the > server maschine. > > The setting in my "settings.xml" looks as follow. > > Does someone know what's wrong? > > Regards > > Thomas > > ... > > MyMirrorId > * > Dependencies for DKV Projects > file://sap-dev/CVSREPO/CvsMaven > > ... > > The connection to file://sap-dev/CVSREPO/CvsMaven is ok. But as I want to > run maven such as "mvn eclipse:eclipse" I got error as follow: Is this an UNC name (\\server\share\path\to\file)? If yes, try to use an URL of this form: file:sap-dev/CVSREPO/CvsMaven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem by Using Mirrors for Repositories
For me, I didn't use I simply defines available repositories and pluginRepositories. Well, it seems working fine as long as my repositories mirror is running correctly. bootstrap ... bootstrap Adrian -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Friday, December 28, 2007 4:06 PM To: Maven Users List Subject: Problem by Using Mirrors for Repositories Hi all, I set my "settings.xml" so it will download the dependencies not from the central (i.g. http://repo1.maven.org/maven2) but from my repository on the server maschine. The setting in my "settings.xml" looks as follow. Does someone know what's wrong? Regards Thomas ... MyMirrorId * Dependencies for DKV Projects file://sap-dev/CVSREPO/CvsMaven ... The connection to file://sap-dev/CVSREPO/CvsMaven is ok. But as I want to run maven such as "mvn eclipse:eclipse" I got error as follow: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. E:\Projekte\Test>mvn clean [INFO] Scanning for projects... [INFO] - --- [INFO] Building Test [INFO]task-segment: [clean] [INFO] - --- [INFO] [clean:clean] [INFO] Deleting directory E:\Projekte\Test\target [INFO] Deleting directory E:\Projekte\Test\target\classes [INFO] Deleting directory E:\Projekte\Test\target\test-classes [INFO] Deleting directory E:\Projekte\Test\target\site [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Fri Dec 28 08:46:32 CET 2007 [INFO] Final Memory: 1M/3M [INFO] E:\Projekte\Test>mvn eclipse:eclipse [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] - --- [INFO] Building Test [INFO]task-segment: [eclipse:eclipse] [INFO] - --- [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping Downloading: file://sap-dev/CVSREPO/CvsMaven/junit/junit/3.8.1/junit-3.8.1.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/junit/junit/3.8.1/junit-3.8.1.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/classworlds/classworlds/1.1-alpha-2 /classworlds-1.1-alpha-2.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/classworlds/classworlds/1.1-alpha-2 /classworlds-1.1-alpha-2.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/jline/jline/0.9.1/jline-0.9.1.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/jline/jline/0.9.1/jline-0.9.1.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/biz/aQute/bndlib/0.0.145/bndlib-0.0 .145.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/biz/aQute/bndlib/0.0.145/bndlib-0.0 .145.pom Downloading: file://sap-dev/CVSREPO/CvsMaven/biz/aQute/bndlib/0.0.145/bndlib-0.0 .145.jar Downloading: file://sap-dev/CVSREPO/CvsMaven/biz/aQute/bndlib/0.0.145/bndlib-0.0 .145.jar Downloading: file://sap-dev/CVSREPO/CvsMaven/jline/jline/0.9.1/jline-0.9.1.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) biz.aQute:bndlib:jar:0.0.145 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=biz.aQute -DartifactId=bndlib \ -Dversion=0.0.145 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=biz.aQute -DartifactId=bndlib \ -Dversion=0.0.145 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.4 2) biz.aQute:bndlib:jar:0.0.145 2) jline:jline:jar:0.9.1 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=jline -DartifactId=jline \ -Dversion=0.9.1 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=jline -DartifactId=jline \ -Dversion=0.9.1 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.