Mirrors and repositories
Hi all - I thought I had a good handle on this, but can someone help me fully understand the mirrors and repositories settings in settings.xml? When one has a repository server running, and there are several urls grouped up, why isn't it enough to tell maven where to look via a single mirrors stanza? Why do I then also have to define an additional repository? For example, if I have: mirrors mirror idfull/id namePublic repository/name urlhttp://nexus.is.awesome/nexus/content/groups/public/url mirrorOf*/mirrorOf /mirror /mirrors Why do I also need to do this: profiles profile iddefault/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idsnapshots/id nameSnapshots/name releases enabledfalse/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicyfail/checksumPolicy /snapshots url http://nexus.is.awesome/nexus/content/repositories/snapshots//url layoutdefault/layout /repository /repositories /profile .. I'd have thought that the mirror stanza above would have pointed maven to this grouped up url for ALL artifact resolution.
Re: Mirrors and repositories
On Fri, Jul 8, 2011 at 3:50 PM, Maven User maven.2.u...@gmail.com wrote: I thought I had a good handle on this, but can someone help me fully understand the mirrors and repositories settings in settings.xml? When one has a repository server running, and there are several urls grouped up, why isn't it enough to tell maven where to look via a single mirrors stanza? Why do I then also have to define an additional repository? What happens when you don't? Knowing why you think you need to do it would help someone explain it. One reason you might do it is to enable a repository to be searched for snapshots. By default, Maven's built-in definition of 'central' only has releases enabled. Unless you define another repository somewhere that has snapshots enabled, Maven will never retrieve any snapshots. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors and repositories
Ahhh - here we go - So I'm working on rolling out a corp pom for a company who doesn't have one right now. The corp pom is a completely different maven project/jenkins build and structurally, unrelated to the other projects that list it as a parent. The current version of this corp pom is 1.0-SNAPSHOT and it's deployed to my snapshot repository within Nexus. The grouped up repository in Nexus includes this snapshot. When I was building without the additional repository defined, maven (maven 3.0.3) was unable to find the parent pom. Once I added this extra repository, boom - it all works. What's extra confusing is I have mirrorOf*/mirrorOf - shouldn't that say this url is a mirror of EVERYTHING? I'm basing this all on this link: http://maven.apache.org/guides/mini/guide-mirror-settings.html (thank you Wendy!) On Fri, Jul 8, 2011 at 3:58 PM, Wendy Smoak wsm...@gmail.com wrote: What happens when you don't? Knowing why you think you need to do it would help someone explain it. One reason you might do it is to enable a repository to be searched for snapshots. By default, Maven's built-in definition of 'central' only has releases enabled. Unless you define another repository somewhere that has snapshots enabled, Maven will never retrieve any snapshots. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors and repositories
One reason you might do it is to enable a repository to be searched for snapshots. By default, Maven's built-in definition of 'central' only has releases enabled. Unless you define another repository somewhere that has snapshots enabled, Maven will never retrieve any snapshots. This is exactly why ^^ You need to do the same for pluginRepositories if you ever want to get snapshots of plugins. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors and repositories
Snapshots of plugins are explicitly banned as are not specifying versions of plugins and relying on maven's super pom (years ago, I got whacked with this when the war plugin changed). But I'm not saying I'm mirroring JUST central, I thought I was saying I'm mirroring every repository you could possibly need. See my comment about the mirrorOf*/mirrorOf. On Fri, Jul 8, 2011 at 4:10 PM, Brian Fox bri...@infinity.nu wrote: One reason you might do it is to enable a repository to be searched for snapshots. By default, Maven's built-in definition of 'central' only has releases enabled. Unless you define another repository somewhere that has snapshots enabled, Maven will never retrieve any snapshots. This is exactly why ^^ You need to do the same for pluginRepositories if you ever want to get snapshots of plugins. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Mirrors and repositories
On Fri, Jul 8, 2011 at 4:09 PM, Maven User maven.2.u...@gmail.com wrote: When I was building without the additional repository defined, maven (maven 3.0.3) was unable to find the parent pom. Once I added this extra repository, boom - it all works. It worked because you had snapshotsenabledtrue somewhere. What's extra confusing is I have mirrorOf*/mirrorOf - shouldn't that say this url is a mirror of EVERYTHING? That means it'll be a mirror for any repository defined in settings.xml or pom.xml. If none of those repos have snapshots enabled, Maven won't download any snapshots. But I'm not saying I'm mirroring JUST central, I thought I was saying I'm mirroring every repository you could possibly need. See my comment about the mirrorOf*/mirrorOf. No, it just means, When you go through your list of known repositories, substitute this url instead of the original one defined. -- Wendy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Dumb question about mirrors and repositories
For some reason I was under the impression that if I had a mirrorOf * defined in my settings.xml, I didn't need to have any repositories defined. mirrors mirror idall-mirror/id nameMirror of Everything/name urlhttp://maven.example.com:8080/nexus/content/groups/public/url mirrorOf*/mirrorOf /mirror /mirrors It's been working just great up until now when I tried to depend on a snapshot that is only in the remote repo. It wouldn't find it, but after I added an appropriate repositories section, it does: profiles profile iddefault-repo/id repositories repository idadrepo-public/id urlhttp://maven.example.com:8080/nexus/content/groups/public/url snapshotsenabledtrue/enabled/snapshots releasesenabledtrue/enabled/releases /repository /repositories /profile profiles activeProfiles activeProfiledefault-repo/activeProfile /activeProfiles So now I'm really curious. Should it actually be working with just the mirror, and if not, why not exactly? Why should releases work with the mirror but not snapshots? And if I need to use repositories anyways, should I get rid of the mirror? (I'm thinking no, since I really want to ensure it is always used over just using Maven central directly). Thanks, Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dumb question about mirrors and repositories
On 6 December 2010 11:38, Phillip Hellewell ssh...@gmail.com wrote: For some reason I was under the impression that if I had a mirrorOf * defined in my settings.xml, I didn't need to have any repositories defined. : snip/ : So now I'm really curious. Should it actually be working with just the mirror, and if not, why not exactly? Why should releases work with the mirror but not snapshots? And if I need to use repositories anyways, should I get rid of the mirror? (I'm thinking no, since I really want to ensure it is always used over just using Maven central directly). You need to add something like the following to your settings.xml to enable snapshots. profile idSnapshotsOkay/id activation activeByDefaulttrue/activeByDefault /activation repositories repository idcentral/id urlhttp://central/url releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://central/url releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots /pluginRepository /pluginRepositories /profile - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dumb question about mirrors and repositories
On Mon, Dec 6, 2010 at 12:55 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: You need to add something like the following to your settings.xml to enable snapshots. ... Thanks, but if you look closely at my email you'll see I already figured that out. All I'm interesting in now is gaining some more understanding about mirrors versus repositories to understand why things work the way they do. Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dumb question about mirrors and repositories
On Mon, Dec 6, 2010 at 3:15 PM, Phillip Hellewell ssh...@gmail.com wrote: On Mon, Dec 6, 2010 at 12:55 PM, Hilco Wijbenga hilco.wijbe...@gmail.com wrote: You need to add something like the following to your settings.xml to enable snapshots. ... Thanks, but if you look closely at my email you'll see I already figured that out. All I'm interesting in now is gaining some more understanding about mirrors versus repositories to understand why things work the way they do. Phillip Because by default, Maven only has central configured as a repository and that's only configured for release artifacts, not snapshots. Justin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Dumb question about mirrors and repositories
On Mon, Dec 6, 2010 at 2:06 PM, Justin Edelson jus...@justinedelson.com wrote: Because by default, Maven only has central configured as a repository and that's only configured for release artifacts, not snapshots. Thanks! That explains it perfectly. Phillip - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Choosing ids for mirrors and repositories
When defining mirrors, do you prefer to use a different id, or are there any problems with reusing the id for the repo being mirrored? In other words, would you do this: mirror idm-internal/id -- different id mirrorOfinternal/mirrorOf url.../url /mirror or this mirror idinternal/id mirrorOfinternal/mirrorOf url.../url /mirror ? Background: In order to use mirrorOf=*, I find that I have to define a mirror for all of the repositories I want to allow access to, and then choose one of those as mirrorOf=* to catch any unwanted extras. (I don't have a single repo that has everything in it.) Thanks, -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about using Mirrors for Repositories
Hi, I've installed the Archiba both in office and at home. When I run at home, everything is OK. When I do the same in office, I still have problem by downloading the http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom; though I can access this file with the browser. The mirror in my settings.xml looks as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlhttp://sap-dev:8080/archiva/repository/internal/url /mirror ... Here is the error message: E:\Projektemvn archetype:create -DgroupId=com.mycompany.app -DartifactId=Test [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. Downloading: http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetype ArtifactId: maven-archetype Version: 1.0-alpha-7 Reason: Unable to download the artifact from any repository org.apache.maven.archetype:maven-archetype:pom:1.0-alpha-7 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Jan 09 13:05:50 CET 2008 [INFO] Final Memory: 1M/2M [INFO] E:\Projekte ** How did the artifacts get at your remote repository. (Your server). Do you use a maven mirror/proxy, like archiva or artifactory or are you using a local repository on the server. (Which is populated by running mvn commands on the server) If you use the second, it is not a real remote repository and then you notice things like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.
RE: A question about using Mirrors for Repositories
Hi, I've installed the Archiba both in office and at home. When I run at home, everything is OK. When I do the same in office, I still have problem by downloading the http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom; though I can access this file with the browser. The mirror in my settings.xml looks as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlhttp://sap-dev:8080/archiva/repository/internal/url /mirror ... Here is the error message: E:\Projektemvn archetype:create -DgroupId=com.mycompany.app -DartifactId=Test [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. Downloading: http://sap-dev:8080/archiva/repository/internal/org/apache/maven/archetype/maven-archetype/1.0-alpha-7/maven-archetype-1.0-alpha-7.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetype ArtifactId: maven-archetype Version: 1.0-alpha-7 Reason: Unable to download the artifact from any repository org.apache.maven.archetype:maven-archetype:pom:1.0-alpha-7 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Jan 09 13:05:50 CET 2008 [INFO] Final Memory: 1M/2M [INFO] E:\Projekte ** How did the artifacts get at your remote repository. (Your server). Do you use a maven mirror/proxy, like archiva or artifactory or are you using a local repository on the server. (Which is populated by running mvn commands on the server) If you use the second, it is not a real remote repository and then you notice things like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail.
RE: A question about using Mirrors for Repositories
How did the artifacts get at your remote repository. (Your server). Do you use a maven mirror/proxy, like archiva or artifactory or are you using a local repository on the server. (Which is populated by running mvn commands on the server) If you use the second, it is not a real remote repository and then you notice things like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4 Any sujestion? * -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail.
Re: A question about using Mirrors for Repositories
On Jan 5, 2008 10:46 AM, Thomas Chang [EMAIL PROTECTED] wrote: I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4 Any sujestion? I do not really see the problem. You will have one archiva instance for the whole team that runs under a different account on the server. Its easy to setup JAVA_HOME differently on the server and on the developer machines. Even if you share a machine, the environment variables can be set up per account or a little shell wrapper can do the trick. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about using Mirrors for Repositories
On Jan 5, 2008 2:46 AM, Thomas Chang [EMAIL PROTECTED] wrote: I am going to use the archiva. But the archiva 1.0 needs jdk 1.5. That means I have to set the JAVA_HOME to point to the jdk 1.5. But many of my programms use jdk 1.4 and I can't change the JAVA_HOME to point to the jdk 1.4 Any sujestion? Archiva has separate mailing lists, please come join us if you have more questions... http://maven.apache.org/archiva/mail-lists.html -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
A question about using Mirrors for Repositories
Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008 [INFO] Final Memory: 4M/8M [INFO] - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.
Re: A question about using Mirrors for Repositories
On Jan 4, 2008 11:42 AM, Thomas Chang [EMAIL PROTECTED] wrote: Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008 [INFO] Final Memory: 4M/8M [INFO] - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about using Mirrors for Repositories
The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008 [INFO] Final Memory: 4M/8M [INFO] - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail.
RE: A question about using Mirrors for Repositories
How did the artifacts get at your remote repository. (Your server). Do you use a maven mirror/proxy, like archiva or artifactory or are you using a local repository on the server. (Which is populated by running mvn commands on the server) If you use the second, it is not a real remote repository and then you notice things like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008 [INFO] Final Memory: 4M/8M [INFO] - Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. - Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail.
RE: A question about using Mirrors for Repositories
You are right. I use the local repository on the server machine as a remote repository to my local client. But I wonder why the other jars can be downloaded except those of org\apache\maven\plugins? How did the artifacts get at your remote repository. (Your server). Do you use a maven mirror/proxy, like archiva or artifactory or are you using a local repository on the server. (Which is populated by running mvn commands on the server) If you use the second, it is not a real remote repository and then you notice things like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008 [INFO] Final Memory: 4M/8M [INFO] - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.
Re: A question about using Mirrors for Repositories
In some situations maven needs additional information for resolving artifacts. This info is stored in the metadata files in the repository. Since the filenames of these metadata files are different in local and remote repositories it does not work to misuse a local repository as a remote one. It is mere luck, that sometimes the download works in spite of that. As Nick already suggested, consider to install a repository manager. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: A question about using Mirrors for Repositories
Afaik, that is because with normal artifacts you are looking for com.example:example:1.0 from which a complete url to the pom and jar files can be created. With plugins you are looking for org.apache.maven.plugins:maven-example-plugin:LATEST for which there should be some checking in the metadata.xml on the remote server, which you don't have. To have a quick solution (and it is always best practice), create a pluginmanagement in your pom file and version each plugin you use. It is also better for reproducible builds. You don't want a tag to break because one of the plugins the build uses is updated. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 4:03 PM To: Maven Users List Subject: RE: A question about using Mirrors for Repositories You are right. I use the local repository on the server machine as a remote repository to my local client. But I wonder why the other jars can be downloaded except those of org\apache\maven\plugins? How did the artifacts get at your remote repository. (Your server). Do you use a maven mirror/proxy, like archiva or artifactory or are you using a local repository on the server. (Which is populated by running mvn commands on the server) If you use the second, it is not a real remote repository and then you notice things like this. (Also not updating of snapshots on your own local repository). Please take a look at archiva or artifactory for your remote repository. It is much easier in use then a remote local repository. Hth, Nick Stolwijk -Original Message- From: Thomas Chang [mailto:[EMAIL PROTECTED] Sent: Fri 1/4/2008 2:50 PM To: users@maven.apache.org Subject: Re: A question about using Mirrors for Repositories The mirror is the repository on the remote server machine. What metadata files should I use? From this mirror I can download all the jars except those of org\apache\maven\plugins. Looks like you are missing some metadata files in the mirror. How did you populate the mirror? Hi all, I have a mirror in my settings.xml as follow: ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile:sap-dev/CVSREPO/CvsMaven/url /mirror ... I do so because I want to download the dependencies from the repository on the server machine. And this runs in most case OK. But in somecase it doesn't work. For example when I run mvn clean, I got error as follow. But the Jar maven-archetype-quickstart-1.0.jar is on the repository on the server machine. I have copy this jar into the local repository. After that the mvn clean process can go on, i.e., the other jars can be downloaded from the server repository. Such a problem happends when I run mvn eclipse:eclipse. I have to copy the maven-eclipse-plugin-2.4.jar into the local repository. Somebody knows why? Regards Thomas [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.archetypes ArtifactId: maven-archetype-quickstart Version: RELEASE Reason: Unable to determine the release version Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= maven-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=mave n-archetype-quickstart \ -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:maven-archetype-quickstart:jar:RELEASE [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Fri Jan 04 11:03:38 CET 2008 [INFO] Final Memory: 4M/8M [INFO] - Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.
Problem by Using Mirrors for Repositories
Hi all, I set in my settings.xml my mirrors as follow: ... mirrors mirror idMyRepo/id mirrorOf*/mirrorOf nameMy repository on remote server/name urlfile:sap-dev/CVSREPOS/CvsMaven/url /mirror /mirrors ... 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? - Ihr erstes Fernweh? Wo gibt es den schönsten Strand.
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
In my settings.xml there is just one mirror as follow: ... mirror idMyRepo/id mirrorOf*/mirrorOf nameMy repository on remote server/name urlfile:sap-dev/CVSREPOS/CvsMaven/url /mirror /mirrors ... . 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
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 mirror as follow: ... mirror idMyRepo/id mirrorOf*/mirrorOf nameMy repository on remote server/name urlfile:sap-dev/CVSREPOS/CvsMaven/url /mirror /mirrors ... . 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]
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 ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile://sap-dev/CVSREPO/CvsMaven/url /mirror ... 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\Testmvn 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\Testmvn 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.4 2) org.codehaus.plexus:plexus-interactivity-jline:jar:1.0-alpha-5 3) jline:jline:jar:0.9.1 -- 2 required artifacts are missing. for artifact: org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.4 from the specified remote repositories: central (http://repo1.maven.org/maven2), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) [INFO]
RE: Problem by Using Mirrors for Repositories
For me, I didn't use mirror I simply defines available repositories and pluginRepositories. Well, it seems working fine as long as my repositories mirror is running correctly. profiles profile idbootstrap/id repositories repository ... /repository /repositories pluginRepositories pluginRepository /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfilebootstrap/activeProfile /activeProfiles 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 ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile://sap-dev/CVSREPO/CvsMaven/url /mirror ... 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\Testmvn 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\Testmvn 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
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 ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile://sap-dev/CVSREPO/CvsMaven/url /mirror ... 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
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 ... mirror idMyMirrorId/id mirrorOf*/mirrorOf nameDependencies for DKV Projects/name urlfile://sap-dev/CVSREPO/CvsMaven/url /mirror ... 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: Mirrors and repositories
Edwin Punzalan a écrit : Mykel is correct. In addition, until MNG-714, when the mirror fails to deliver, the mirrored repository is not used. So are mirrors of the same repository id. Mykel Alvis wrote: NEEDED WIKI TOPIC My understanding is that mirrors simply override the URLs for the repos they're mirroring. Therefore, it's URL effectively replaces the URL configured in the repository that it's listed as a mirrorOf There are a number of reasons for doing this. The ones that come to mind at present are 1. You're running a maven-aware proxy (like proximity or maven-proxy) and that proxy knows about central and you want to override the URL for central to your proxy. 2. You know of a geographically closer mirror to some repo (often central) and you want to use that mirror rather than the original one. On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote: Edwin Punzalan a écrit : repositories stores artifacts and lets mvn download from it. mirrors are like copies of a repository... you use it when a repository is inaccessible or too slow. Hope that helps ^_^ Emmanuel Hugonnet wrote: Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - 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] Yep but what happens when a mirror is done ? Does Maven check the repository ? If I proxy central or codehaus is it better to declare my proxy as a mirror (so in the settings.xml) or as the repository (in my POM or with a profile in my settings.xml) ? What are the consequences of this choice ? Thanks Emmanuel - 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] Thanks, This is clearer for me now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mirrors and repositories
Mykel is correct. In addition, until MNG-714, when the mirror fails to deliver, the mirrored repository is not used. So are mirrors of the same repository id. Mykel Alvis wrote: NEEDED WIKI TOPIC My understanding is that mirrors simply override the URLs for the repos they're mirroring. Therefore, it's URL effectively replaces the URL configured in the repository that it's listed as a mirrorOf There are a number of reasons for doing this. The ones that come to mind at present are 1. You're running a maven-aware proxy (like proximity or maven-proxy) and that proxy knows about central and you want to override the URL for central to your proxy. 2. You know of a geographically closer mirror to some repo (often central) and you want to use that mirror rather than the original one. On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote: Edwin Punzalan a écrit : repositories stores artifacts and lets mvn download from it. mirrors are like copies of a repository... you use it when a repository is inaccessible or too slow. Hope that helps ^_^ Emmanuel Hugonnet wrote: Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - 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] Yep but what happens when a mirror is done ? Does Maven check the repository ? If I proxy central or codehaus is it better to declare my proxy as a mirror (so in the settings.xml) or as the repository (in my POM or with a profile in my settings.xml) ? What are the consequences of this choice ? Thanks Emmanuel - 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]
Mirrors and repositories
Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mirrors and repositories
repositories stores artifacts and lets mvn download from it. mirrors are like copies of a repository... you use it when a repository is inaccessible or too slow. Hope that helps ^_^ Emmanuel Hugonnet wrote: Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - 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: Mirrors and repositories
Edwin Punzalan a écrit : repositories stores artifacts and lets mvn download from it. mirrors are like copies of a repository... you use it when a repository is inaccessible or too slow. Hope that helps ^_^ Emmanuel Hugonnet wrote: Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - 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] Yep but what happens when a mirror is done ? Does Maven check the repository ? If I proxy central or codehaus is it better to declare my proxy as a mirror (so in the settings.xml) or as the repository (in my POM or with a profile in my settings.xml) ? What are the consequences of this choice ? Thanks Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mirrors and repositories
NEEDED WIKI TOPIC My understanding is that mirrors simply override the URLs for the repos they're mirroring. Therefore, it's URL effectively replaces the URL configured in the repository that it's listed as a mirrorOf There are a number of reasons for doing this. The ones that come to mind at present are 1. You're running a maven-aware proxy (like proximity or maven-proxy) and that proxy knows about central and you want to override the URL for central to your proxy. 2. You know of a geographically closer mirror to some repo (often central) and you want to use that mirror rather than the original one. On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote: Edwin Punzalan a écrit : repositories stores artifacts and lets mvn download from it. mirrors are like copies of a repository... you use it when a repository is inaccessible or too slow. Hope that helps ^_^ Emmanuel Hugonnet wrote: Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - 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] Yep but what happens when a mirror is done ? Does Maven check the repository ? If I proxy central or codehaus is it better to declare my proxy as a mirror (so in the settings.xml) or as the repository (in my POM or with a profile in my settings.xml) ? What are the consequences of this choice ? Thanks Emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- I'm just an unfrozen caveman software developer. I don't understand your strange, modern ways.