Skip to content

Support JVM-Config and environment variables for proxy configuration #11011

@mcandre

Description

@mcandre

Affected version

  • v3 series

Bug description

Despite dozens of community discussions claiming otherwise on Reddit, Stack Overflow, old Apache bug trackers, and new GitHub Apache bug trackers, neither Maven nor Maven Wrapper support .mvn/jvm.config nor environment variables for simple proxy configuration.

None of the industry standard mechanisms available to Gradle, to other programming languages, to Ant, work in v3 Maven.

  • Industry standard, cURL based environment variables: http_proxy, http_proxy, no_proxy
  • UPPERCASE environment variables: HTTP_PROXY, HTTPS_PROXY, NO_PROXY
  • Maven wrapper .mvn/jvm.config files
  • Maven's environment variables: MAVEN_ARGS, MAVEN_OPTS
  • JVM standard JAVA_OPTS environment variable

As a workaround, settings.xml can be hardcoded to apply a proxy configuration. But this makes it significantly harder to override partial Maven configurations, compared with environment variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions