BAEL-3515 proxy and security settings examples

This commit is contained in:
Roger Yates 2019-12-08 22:45:47 +10:00
parent bc628d1643
commit 4816809ded
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<!-- start of settings.xml here -->
<!--
Proxies section (extract of settings.xml) containing example proxy definitions:
* BaeldungProxy_Encrypted - an example http proxy with an encrypted password - encrypted using 'mvn --encrypt-password'
* BaeldungProxy_Authenticated - an example http proxy with a plain text password.
* BaeldungProxy - an example minimalist unauthenticated http proxy
All of these are 'active' - so maven will use the first one in the list.
-->
<proxies>
<proxy>
<id>BaeldungProxy_Encrypted</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.baeldung.com</host>
<port>80</port>
<username>baeldung</username>
<password>{U2iMf+7aJXQHRquuQq6MX+n7GOeh97zB9/4e7kkEQYs=}</password>
<nonProxyHosts>internal.baeldung.com|localhost|127.*|[::1]</nonProxyHosts>
</proxy>
<proxy>
<id>BaeldungProxy_Authenticated</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.baeldung.com</host>
<port>80</port>
<username>baeldung</username>
<password>changeme</password>
<nonProxyHosts>internal.baeldung.com|localhost|127.*|[::1]</nonProxyHosts>
</proxy>
<proxy>
<id>BaeldungProxy</id>
<host>proxy.baeldung.com</host>
<port>80</port>
<nonProxyHosts>internal.baeldung.com|localhost|127.*|[::1]</nonProxyHosts>
</proxy>
</proxies>
<!-- rest of settings.xml here -->

View File

@ -0,0 +1,6 @@
<!--
Redirect maven to settings-security.xml stored elsewhere:
-->
<settingsSecurity>
<relocation>R:\config\settings-security.xml</relocation>
</settingsSecurity>

View File

@ -0,0 +1,7 @@
<!--
Encrypt master password with:
mvn --encrypt-master-password
-->
<settingsSecurity>
<master>{QFMlh/6WjF8H9po9UD\}0Nv18e527jqWb6mUgIB798n4=}</master>
</settingsSecurity>