JAVA-49: Renamed proxy to maven-proxy and moved to maven-modules

This commit is contained in:
sampadawagde 2020-06-28 16:16:16 +05:30
parent 33e15c0a63
commit 3d1290bec6
4 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,3 @@
### Relevant Articles:
- [Using Maven Behind a Proxy](https://www.baeldung.com/maven-behind-proxy)

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>