You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "daniel.green" <oc...@gmail.com> on 2009/07/08 20:13:22 UTC

Getting past proxy

I have configured my settings.xml with the following:

   <mirror>
      <id>internal-repository</id>
      <name>CIDC Maven Repository</name>
      <!--Should be replaced by property, not sure how to do this-->
      <url>http://10.1.102.139:8081/artifactory/repo</url>
      <mirrorOf>*</mirrorOf>
    </mirror>

However, there are a few dependencies (ones not in the repository) that are
still being retrieved from maven.org. In these cases I want the build to
fail.

Downloading:
http://10.1.102.139:8081/artifactory/repo/org/apache/struts/struts-annotations/1.0.2/struts-annotations-1.0.2.jar
2009-07-08 14:10:26,644 [INFO ] (o.a.r.HttpRepo      :152) - repo1:
Retrieving
'http://repo1.maven.org/maven2/org/apache/struts/struts-annotations/1.0.2/struts-annotations-1.0.2.jar'...
2009-07-08 14:10:26,691 [INFO ] (o.a.r.HttpRepo      :152) - repo1:
Retrieving
'http://repo1.maven.org/maven2/org/apache/struts/struts-annotations/1.0.2/struts-annotations-1.0.2.jar.sha1'...
2009-07-08 14:10:26,741 [INFO ] (o.a.r.HttpRepo      :152) - repo1:
Retrieving
'http://repo1.maven.org/maven2/org/apache/struts/struts-annotations/1.0.2/struts-annotations-1.0.2.jar.md5'..

Any idea what's going on?
-- 
View this message in context: http://www.nabble.com/Getting-past-proxy-tp24396686p24396686.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Getting past proxy

Posted by Wayne Fay <wa...@gmail.com>.
> However, there are a few dependencies (ones not in the repository) that are
> still being retrieved from maven.org. In these cases I want the build to
> fail.

Maven sometimes "lies" when it says it is downloading from repos other
than the one you have defined as your mirror.

Check netstat -a (or its equivalent on your OS) and make sure it is
really pulling from repo1 and not your Artifactory instance during
your build.

Wayne

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