Skip to content

Commit 488c577

Browse files
authored
Merge pull request eugenp#8331 from rojyates/feature/BAEL-3515-maven-proxy-settings
Feature/bael 3515 maven proxy settings
2 parents 5be2e91 + 205c7f3 commit 488c577

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

maven-all/maven/proxy/settings.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!-- start of settings.xml here -->
2+
3+
<!--
4+
Proxies section (extract of settings.xml) containing example proxy definitions:
5+
* BaeldungProxy_Encrypted - an example http proxy with an encrypted password - encrypted using 'mvn --encrypt-password'
6+
* BaeldungProxy_Authenticated - an example http proxy with a plain text password.
7+
* BaeldungProxy - an example minimalist unauthenticated http proxy
8+
All of these are 'active' - so maven will use the first one in the list.
9+
-->
10+
<proxies>
11+
12+
<proxy>
13+
<id>BaeldungProxy_Encrypted</id>
14+
<active>true</active>
15+
<protocol>http</protocol>
16+
<host>proxy.baeldung.com</host>
17+
<port>80</port>
18+
<username>baeldung</username>
19+
<password>{U2iMf+7aJXQHRquuQq6MX+n7GOeh97zB9/4e7kkEQYs=}</password>
20+
<nonProxyHosts>internal.baeldung.com|localhost|127.*|[::1]</nonProxyHosts>
21+
</proxy>
22+
23+
<proxy>
24+
<id>BaeldungProxy_Authenticated</id>
25+
<active>true</active>
26+
<protocol>http</protocol>
27+
<host>proxy.baeldung.com</host>
28+
<port>80</port>
29+
<username>baeldung</username>
30+
<password>changeme</password>
31+
<nonProxyHosts>internal.baeldung.com|localhost|127.*|[::1]</nonProxyHosts>
32+
</proxy>
33+
34+
<proxy>
35+
<id>BaeldungProxy</id>
36+
<host>proxy.baeldung.com</host>
37+
<port>80</port>
38+
<nonProxyHosts>internal.baeldung.com|localhost|127.*|[::1]</nonProxyHosts>
39+
</proxy>
40+
41+
</proxies>
42+
43+
<!-- rest of settings.xml here -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!--
2+
Redirect maven to settings-security.xml stored elsewhere:
3+
-->
4+
<settingsSecurity>
5+
<relocation>R:\config\settings-security.xml</relocation>
6+
</settingsSecurity>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--
2+
Encrypt master password with:
3+
mvn --encrypt-master-password
4+
-->
5+
<settingsSecurity>
6+
<master>{QFMlh/6WjF8H9po9UD\}0Nv18e527jqWb6mUgIB798n4=}</master>
7+
</settingsSecurity>

0 commit comments

Comments
 (0)