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

Ludovic Claude ludovic.claude at laposte.net
Thu Feb 10 22:44:11 UTC 2011


Hello Andreas,

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

How did you set this http_proxy environment variable?

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

Ludovic

On 08/02/11 13:33, andreas at an3as.eu wrote:
> 
> Package: maven2
> Version: 2.2.1-5
> Severity: normal
> 
> Hi,
> 
> when I tried mvn the first time when sitting behind a web proxy
> (http_proxy environment variable set) I've got:
> 
> 
> $ mvn -Djava.net.preferIPv4Stack=true archetype:generate -DgroupId=jam -DartifactId=lib-jam -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: Unexpected end of file from server
> [INFO] Repository 'central' will be blacklisted
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Feb 08 13:26:54 CET 2011
> [INFO] Final Memory: 2M/57M
> [INFO] ------------------------------------------------------------------------
> 
> 
> As you see I have -Djava.net.preferIPv4Stack=true set to make sure I do not
> replicate #563946.  Any idea how to verify if my assumption of not regarding
> http_proxy might be true?
> 
> Kind regards and thanks for maintaining maven2
> 
>       Andreas.
> 
> -- System Information:
> Debian Release: 6.0
>   APT prefers testing
>   APT policy: (501, 'testing'), (50, 'unstable'), (5, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages maven2 depends on:
> ii  default-jre [java2-runtime] 1:1.6-40     Standard Java or Java compatible R
> ii  default-jre-headless [java2 1:1.6-40     Standard Java or Java compatible R
> ii  gcj-4.4-jre-headless [java2 4.4.5-2      Java runtime environment using GIJ
> ii  gcj-jre-headless [java2-run 4:4.4.5-1    Java runtime environment using GIJ
> ii  gij-4.3 [java2-runtime-head 4.3.4-4      The GNU Java bytecode interpreter
> ii  libmaven2-core-java         2.2.1-4      Core libraries for Maven2
> ii  openjdk-6-jre [java2-runtim 6b18-1.8.3-2 OpenJDK Java runtime, using Hotspo
> ii  openjdk-6-jre-headless [jav 6b18-1.8.3-2 OpenJDK Java runtime, using Hotspo
> 
> Versions of packages maven2 recommends:
> ii  libmaven-clean-plugin-java    2.3-3      Maven clean plugin
> ii  libmaven-compiler-plugin-java 2.0.2-4    Maven compiler plugin
> ii  libmaven-install-plugin-java  2.3-2      Maven install plugin
> ii  libmaven-jar-plugin-java      2.2-4      Maven Jar plugin
> ii  libmaven-resources-plugin-jav 2.3-5      Maven resources plugin
> ii  libmaven-shade-plugin-java    1.2.1-2    Maven shade plugin
> 
> maven2 suggests no packages.
> 
> -- no debconf information
> 
> 
> 
> __
> This is the maintainer address of Debian's Java team
> <http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers>. Please use
> debian-java at lists.debian.org for discussions and questions.
> 
> 






More information about the pkg-java-maintainers mailing list