Bug#612416: maven2: seems not to regard proxy settings

Andreas Tille andreas at an3as.eu
Fri Feb 11 10:33:57 UTC 2011


On Thu, Feb 10, 2011 at 11:44:11PM +0100, Ludovic Claude wrote:
> 
> Can you run the same command but with the --debug option? This will help
> to trace what is the source of the problem, it can be anything here,
> especially as your proxy may not be configured properly.
> 
> mvn --debug -Djava.net.preferIPv4Stack=true archetype:generate
> -DgroupId=jam -DartifactId=lib-jam
> -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

I attached the stdout+stderr output to this mail.
 
> How did you set this http_proxy environment variable?

Well, simply as

  export http_proxy=<proxyurl:port>

as it is regarded by all tools I use.

> Have you followed this guide for using proxies with Maven?
> http://maven.apache.org/guides/mini/guide-proxies.html

Now I did (for the log above!!):

$ cat ~/.m2/settings.xml
<settings>
  <proxies> <!-- http://maven.apache.org/guides/mini/guide-proxies.html -->
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>fw-bln-proxy.rki.ivbb.bund.de</host>
      <port>8080</port>
    </proxy>
  </proxies>
</settings>


BTW, I honestly think that there needs to be a hint to the URL
above at least in README.Debian.  I would be even more happy
as a user if I would get a warning:

  mvn: You have set a proxy via http_proxy in your environment but
       there is no file ~/.m2/settings.xml / a proxy entry in this
       file is missing.
       Should I create such a file / an according entry for you
       based on the proxy information? [Y/n]

or something like this.  If it turns out the the proxy is not
the real reason for my problem (but should be set anyway) I'd like
to turn this into a wishlist bug report.

Kind regards

       Andreas.

-- 
http://fam-tille.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mvn.log.gz
Type: application/octet-stream
Size: 1779 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20110211/71295525/attachment-0001.obj>


More information about the pkg-java-maintainers mailing list