Thanks for the tip, I changed my settings.xml to be more like your example. I made a "developer" profile and used your trick to take advantage of the fallback URL so everything always hits the mirror for the repositoryId.
I'm getting the same problem where it tries to download artifacts that should be coming from thirdparty, but it is looking at internal (stuff we released). The big puzzler to me is that it is trying to download artifacts from servicemix.org when it can't find it in internal. I don't have any configuration that aims at servicemix.org, where is this coming from? Most artifacts are resolved just fine, the only artifacts I'm having problems with are: commons-pool-1.2 commons-pool-1.3 geronimo--jta_1.1_spec howl-1.0.1-1 slf4j-api-1.4.3 xerces-2.0.2 The clue to me looks like the "remote = <!-- top.location" Any ideas on how I can determine where the servicemix.org is coming from? ________________________________________ From: Matt Brown [[email protected]] Sent: Friday, June 12, 2009 12:46 PM To: Tim Andersen Subject: RE: maven 2.1.0 why it is looking at servicemix.org? Hi Tim, I'm by no means an expert on Maven, but let me show you how I have my settings.xml set up; I haven't had any issues with mirrors or anything like that in the latest version. I have a local Nexus set up, which I want to use as a mirror for EVERYTHING (which may be a key difference in our usages and might explain why 2.1.0 works for me): <mirrors> <mirror> <id>nexus</id> <mirrorOf>central</mirrorOf> <url>http://localhost:8082/nexus/content/groups/public</url> </mirror> <mirror> <id>nexus-snapshots</id> <mirrorOf>snapshots</mirrorOf> <url>http://localhost:8082/nexus/content/groups/public-snapshots</url> </mirror> </mirrors> Then under profiles I have a profile for "nexus" (which is set to active by default) I have a configuration which basically tells Maven to look under a non-existing URL for "central" and "snapshots" - forcing it to always fall back to my local Nexus mirror (which I want all requests to go to so that we can have a full-fledged repo within the office here): <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>snapshots</id> <url>http://snapshots</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> So like I said, looking at your settings.xml I think we might have slightly different use cases - sounds like you want to continue to use the public repos/mirrors (for central) but just add on a single mirror. I hope this helps anyway. -Matt -----Original Message----- From: Tim Andersen [mailto:[email protected]] Sent: Friday, June 12, 2009 1:41 PM To: Matt Brown Subject: RE: maven 2.1.0 why it is looking at servicemix.org? Hi Matt, Sorry to email you off-list, but I'm not sure if I should make our settings.xml "public". If you can help me understand this issue from the attached file I'll post a follow-up to my original question. Kind Regards, Tim ________________________________________ From: Matt Brown [[email protected]] Sent: Friday, June 12, 2009 11:12 AM To: Maven Users List Subject: RE: maven 2.1.0 why it is looking at servicemix.org? What does your settings.xml look like? -----Original Message----- From: Tim Andersen [mailto:[email protected]] Sent: Friday, June 12, 2009 12:04 PM To: [email protected] Subject: maven 2.1.0 why it is looking at servicemix.org? When I upgraded to Maven 2.1.0 it seems like it is not looking at the mirror I have in my settings.xml. It is trying to download howl-1.0.1-1 servicemix.org instead of my local Archiva mirror. How do I find out why it is looking at servicemix.org? This problem does not occur with Maven 2.0.10 or 2.0.9. ------------------------------------------------ Here's the relevant part of my build log: ------------------------------------------------ Downloading: http://m2repo/archiva/repository/internal/org/objectweb/howl/howl/1.0.1-1/howl-1.0.1-1.pom [INFO] Unable to find resource 'org.objectweb.howl:howl:pom:1.0.1-1' in repository internal (http://m2repo/archiva/repository/internal) Downloading: http://servicemix.org/m2-repo/org/objectweb/howl/howl/1.0.1-1/howl-1.0.1-1.pom 1K downloaded (howl-1.0.1-1.pom) [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '2be00629e2affd448f8509a01a383b7abdbbb139'; remote = '<!-- top.location="http://servicemix.org/?fp=kXHnDH0xDZIfzlzX%2BEMg2aI8qPN9TqlzHEznC4OmPgSU6kJslhZcPd5S%2FYREWpepaNun9UxzXRlXmQuQgNLzz8S3Hz%2BCR%2BUiBOBpgICau7cOo8fLc4jteLsHfUwsKEr7H4uN&cifr=1"; /* --> <script' - RETRYING ------------------------------------------------ My original post was here: http://www.mail-archive.com/[email protected]/msg99267.html After digging in a little more, I hope this post provides more relevant information. This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the originator of the message. This footer also confirms that this e-mail message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Iowa Student Loan. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
