unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35462: maven ignoring mirror-settings in ~/.m2/settings.xml
@ 2019-04-27 20:53 Arne Babenhauserheide
  2019-04-30 10:57 ` Julien Lepiller
  0 siblings, 1 reply; 4+ messages in thread
From: Arne Babenhauserheide @ 2019-04-27 20:53 UTC (permalink / raw)
  To: 35462

[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]

Hi,

When I set a mirror in ~/.m2/settings.xml, that mirror is not used by
the maven in Guix.

To reproduce:

    mkdir -p ~/.m2/
    echo '
    <settings>
      <servers>
        <server>
          <id>internal</id>
          <username>foo</username>
          <password>bar</password>
        </server>
      </servers>
      <mirrors>
        <mirror>
          <id>nexus</id>
          <name>nexus</name>
          <url>http://nexus.example.com/nexus/content/groups/public/</url>
          <mirrorOf>*</mirrorOf>
        </mirror>
      </mirrors>
    </settings>
    ' > ~/.m2/settings.xml
    # run maven somewhere

With this setting, maven should run every request through the configured
nexus (which in this case means that any try to download should fail).

In my setup, maven just ignores this setting and keeps downloading from
repo.maven.apache.org which (a) could leak internal information and (b)
does not get our internal packages.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1076 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-01  6:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-27 20:53 bug#35462: maven ignoring mirror-settings in ~/.m2/settings.xml Arne Babenhauserheide
2019-04-30 10:57 ` Julien Lepiller
2019-04-30 20:15   ` Arne Babenhauserheide
2019-05-01  6:44     ` Julien Lepiller

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).