RE: maven 2.1.0 why it is looking at servicemix.org?

2009-06-15 Thread Tim Andersen
Wayne, thanks for the suggestions.  I did not find anything in my ~/.m2 that 
contained servicemix.org except for the problematic jars that contained 
javascript/html instead of the pom.xml. I also ran a mvn help:effective-pom 
and did not see servicemix.org.

When I changed mirrorOfcentral/mirrorOf to mirrorOfexternal:*/mirrorOf 
in my settings.xml, I was able to download the jars that had been a problem. I 
get the same results if I use mirrorOf*/mirrorOf.  (This seems to have 
fixed my original problem.)

My new problem with the mirrorOfexternal:*/mirrorOf is that I can no longer 
access any of my local repositories except for thirdparty.

My guess is that one of my local repository names conflicts with another 
repository. My local repository names are:
  internal
  thirdparty
  ga
  snapshots

I'm guessing that I had a problem with these jars because one of our local 
repositories has a conflict with the repositoryId (which is why it was looking 
for servicemix.org):
  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


Can anyone confirm my guess about conflicting repositoryId's?






From: Wayne Fay [wayne...@gmail.com]
Sent: Friday, June 12, 2009 8:32 PM
To: Maven Users List
Subject: Re: maven 2.1.0 why it is looking at servicemix.org?

 Any ideas on how I can determine where the servicemix.org is coming from?

Grep your ~/.m2/ directory for servicemix.org and see if it might be
in a random artifact's pom that is being brought into your build as a
direct dependency or transitive.

Probably your settings.xml does not specify mirrorOf*/mirrorOf but
only mirrorOfcentral. This means only central will be accessed via
your Archiva instance.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven 2.1.0 why it is looking at servicemix.org?

2009-06-15 Thread Tim Andersen
SOLVED!

We changed our mirror settings based upon the advanced guide: 
http://maven.apache.org/guides/mini/guide-mirror-settings.html

Our settings.xml now excludes our local repositories (local meaning in our 
building, not on the local machine):
mirror
  idthirdparty/id
  mirrorOf*,!internal,!ga,!snapshots/mirrorOf
  nameISL Third Party Proxy Repository/name
  urlhttp://m2repo/archiva/repository/thirdparty/url
/mirror


Thanks for the suggestions, it lead us down the right path to find the solution.





From: Tim Andersen [tander...@studentloan.org]
Sent: Monday, June 15, 2009 9:35 AM
To: Maven Users List
Subject: RE: maven 2.1.0 why it is looking at servicemix.org?

Wayne, thanks for the suggestions.  I did not find anything in my ~/.m2 that 
contained servicemix.org except for the problematic jars that contained 
javascript/html instead of the pom.xml. I also ran a mvn help:effective-pom 
and did not see servicemix.org.

When I changed mirrorOfcentral/mirrorOf to mirrorOfexternal:*/mirrorOf 
in my settings.xml, I was able to download the jars that had been a problem. I 
get the same results if I use mirrorOf*/mirrorOf.  (This seems to have 
fixed my original problem.)

My new problem with the mirrorOfexternal:*/mirrorOf is that I can no longer 
access any of my local repositories except for thirdparty.

My guess is that one of my local repository names conflicts with another 
repository. My local repository names are:
  internal
  thirdparty
  ga
  snapshots

I'm guessing that I had a problem with these jars because one of our local 
repositories has a conflict with the repositoryId (which is why it was looking 
for servicemix.org):
  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


Can anyone confirm my guess about conflicting repositoryId's?






From: Wayne Fay [wayne...@gmail.com]
Sent: Friday, June 12, 2009 8:32 PM
To: Maven Users List
Subject: Re: maven 2.1.0 why it is looking at servicemix.org?

 Any ideas on how I can determine where the servicemix.org is coming from?

Grep your ~/.m2/ directory for servicemix.org and see if it might be
in a random artifact's pom that is being brought into your build as a
direct dependency or transitive.

Probably your settings.xml does not specify mirrorOf*/mirrorOf but
only mirrorOfcentral. This means only central will be accessed via
your Archiva instance.

Wayne

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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven 2.1.0 why it is looking at servicemix.org?

2009-06-12 Thread Matt Brown
What does your settings.xml look like? 

-Original Message-
From: Tim Andersen [mailto:tander...@studentloan.org] 
Sent: Friday, June 12, 2009 12:04 PM
To: users@maven.apache.org
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%2BUiBOBpgICau7cOo8fLc4jteLsHfUwsKEr7H4uNcifr=1;;
/*
--
script' - RETRYING


My original post was here: 
http://www.mail-archive.com/users@maven.apache.org/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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: maven 2.1.0 why it is looking at servicemix.org?

2009-06-12 Thread Tim Andersen
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 [matt.br...@citrixonline.com]
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
  idnexus/id
  mirrorOfcentral/mirrorOf
  urlhttp://localhost:8082/nexus/content/groups/public/url
/mirror
mirror
  idnexus-snapshots/id
  mirrorOfsnapshots/mirrorOf
  urlhttp://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
  idnexus/id
  !--Enable snapshots for the built in central repo to direct --
  !--all requests to nexus via the mirror --
  repositories
repository
  idcentral/id
  urlhttp://central/url
  releasesenabledtrue/enabled/releases
  snapshotsenabledtrue/enabled/snapshots
/repository
repository
  idsnapshots/id
  urlhttp://snapshots/url
  releasesenabledtrue/enabled/releases
  snapshotsenabledtrue/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:tander...@studentloan.org]
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 [matt.br...@citrixonline.com]
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:tander...@studentloan.org]
Sent: Friday, June 12, 2009 12:04 PM
To: users@maven.apache.org
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

Re: maven 2.1.0 why it is looking at servicemix.org?

2009-06-12 Thread Wayne Fay
 Any ideas on how I can determine where the servicemix.org is coming from?

Grep your ~/.m2/ directory for servicemix.org and see if it might be
in a random artifact's pom that is being brought into your build as a
direct dependency or transitive.

Probably your settings.xml does not specify mirrorOf*/mirrorOf but
only mirrorOfcentral. This means only central will be accessed via
your Archiva instance.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org