Oracle Maven Repository in Nexus, authentication failure

Short overview of some last week failing builds at our site 😉

Since a while ago it’s possible to register proxy repositories in Nexus based on the Oracle Maven Repository.
To be able to proxy this repository you need to make use of an oracle account for the autenthication before you can download the artifact.

Let’s check the logging to understand what it does (i can rephrase the logfile or just copy/paste it ;), when others google for it it will find the hit much easier)

2016-11-11 15:17:54 INFO  [tp2714330-28743] - org.sonatype.nexus.proxy.maven.routing.internal.ManagerImpl - Initializing non-existing prefix file of newly added "oracle_maven_proxy" [id=oracle_maven_proxy]
2016-11-11 15:17:54 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing circular redirects in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:17:54 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing cookie use in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:17:54 INFO  [tp2714330-28743] - org.sonatype.nexus.proxy.registry.DefaultRepositoryRegistry - Added repository "oracle_maven_proxy" [id=oracle_maven_proxy][contentClass=Maven2][mainFacet=org.sonatype.nexus.proxy.maven.MavenProxyRepository]
2016-11-11 15:17:54 INFO  [tp2714330-28743] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration made by admin...
2016-11-11 15:17:54 INFO  [tp2714330-28743] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration made by admin...
2016-11-11 15:17:55 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) started :: Updating repository index "oracle_maven_proxy" from path null and below.
2016-11-11 15:17:55 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "oracle_maven_proxy" [id=oracle_maven_proxy]
2016-11-11 15:17:55 INFO  [ool-1-thread-19] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Initializing remote transport for proxy repository "oracle_maven_proxy" [id=oracle_maven_proxy]...
2016-11-11 15:17:55 INFO  [ool-1-thread-19] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing circular redirects in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:17:55 INFO  [ool-1-thread-19] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing cookie use in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:17:55 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.properties
2016-11-11 15:17:55 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:17:55 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:17:55 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] HEAD https://maven.oracle.com/.meta/prefixes.txt
2016-11-11 15:17:55 DEBUG [y-3-thread-1103] - remote.storage.outbound - [oracle_maven_proxy] HEAD https://maven.oracle.com/
2016-11-11 15:17:55 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.properties
2016-11-11 15:17:55 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.properties
2016-11-11 15:17:56 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/.meta/prefixes.txt -> https://www.oracle.com/content/secure/maven/content/.meta/prefixes.txt
2016-11-11 15:17:56 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> HTTP/1.1 200 OK; 992.5 ms
2016-11-11 15:17:56 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot incrementally update index for repository oracle_maven_proxy
2016-11-11 15:17:56 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.DefaultIndexerManager - Unable to incrementally update index for repository oracle_maven_proxy. Trying full index update
2016-11-11 15:17:56 DEBUG [y-3-thread-1103] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:17:56 DEBUG [y-3-thread-1103] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:17:56 DEBUG [y-3-thread-1103] - remote.storage.outbound - [oracle_maven_proxy] HEAD https://maven.oracle.com/ -> HTTP/1.1 200 OK; 700.4 ms
2016-11-11 15:17:56 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "oracle_maven_proxy" [id=oracle_maven_proxy]
2016-11-11 15:17:56 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.properties
2016-11-11 15:17:56 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 302 redirect https://maven.oracle.com/content/secure/maven/content/.meta/prefixes.txt -> https://login.oracle.com:443/oam/server/obrareq.cgi?encquery%3DpWVt9LA%2FZO2Zg9oy7%2FfjF6%2Fq7czpe3N0fSfRMalYRxEAG7nZX7uCOfu9%2FH1iUHyykaP0yHYrwXTXljpSaNgubNmx747sXOvhkNhMJhz0%2FdII9KfMspGx41DxkKrd5SfcHIBe0hGXyeDIOj2%2Ff3TdGqo%2Bu%2FZ%2FR5mcbyYh9%2Bx1915udAdYpHtKaAy4k1qmQeGmu9slCaT%2Fzyrob5nhmg27EuXitqn0MaSvGkmwyBT%2ByGG0YSe%2Bi1AXJY%2FGzPUVZCc6uYi7yP4fVtSLHDGP12vXeITC1C8x0XK3M%2BwhisZHVT3oM6a9Qjth59E9LmoUZXWsthrlBY%2F5%2FN0ZjvNo4eGZIlR2s56rwB5W95fpz4VU5e8X%2FJqM%2FuaRm%2FaCwWrw%2FSdJznE8xcmwrDHZInl8A6wiJg%3D%3D%20agentid%3Dwww.oracle.com%20ver%3D1%20crmethod%3D2&ECID-Context=1.005GGSc4oMA2rITYU9q2VO00027m0042D6%3BkXjE
2016-11-11 15:17:56 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.properties
2016-11-11 15:17:56 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.properties
2016-11-11 15:17:56 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> HTTP/1.1 200 OK; 681.5 ms
2016-11-11 15:17:56 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.gz
2016-11-11 15:17:57 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.gz -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.gz
2016-11-11 15:17:57 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.gz -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.gz
2016-11-11 15:17:57 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 302 redirect https://maven.oracle.com/oam/server/obrareq.cgi?encquery%3DpWVt9LA%2FZO2Zg9oy7%2FfjF6%2Fq7czpe3N0fSfRMalYRxEAG7nZX7uCOfu9%2FH1iUHyykaP0yHYrwXTXljpSaNgubNmx747sXOvhkNhMJhz0%2FdII9KfMspGx41DxkKrd5SfcHIBe0hGXyeDIOj2%2Ff3TdGqo%2Bu%2FZ%2FR5mcbyYh9%2Bx1915udAdYpHtKaAy4k1qmQeGmu9slCaT%2Fzyrob5nhmg27EuXitqn0MaSvGkmwyBT%2ByGG0YSe%2Bi1AXJY%2FGzPUVZCc6uYi7yP4fVtSLHDGP12vXeITC1C8x0XK3M%2BwhisZHVT3oM6a9Qjth59E9LmoUZXWsthrlBY%2F5%2FN0ZjvNo4eGZIlR2s56rwB5W95fpz4VU5e8X%2FJqM%2FuaRm%2FaCwWrw%2FSdJznE8xcmwrDHZInl8A6wiJg%3D%3D%20agentid%3Dwww.oracle.com%20ver%3D1%20crmethod%3D2&ECID-Context=1.005GGSc4oMA2rITYU9q2VO00027m0042D6%3BkXjE -> http://www.oracle.com/obrar.cgi?encreply=GKtOH6%2FbBB3GsPamDX%2Bp6NZ5PPVx%2FPJkm8AkVyxv%2FpxAdksPKea4JeMR%2FUhkYYNQd4%2FNx3lrywqZx0pDR27Ks3RketVRDR4L3ad7zhevgRLcm%2FyYGEMGkI8XkCAHRtKbpNzAEz%2FLkVxeishlCu5w05Xr5HVongbqKcCktbChHp9mljaRSNm5MX%2FjrPIjcfZ%2FzYzioDkLsqz5NeRy78icBe5tkEpJoC9E72M5ldKPZaPveoRNB5nLtZ1n%2BGktCcPsMgqrdQLXSgOdPNQpPPrThWS9B2Hmem8i79iZf949Wcpmr0PElL7%2Fd9KW7bOW8dekuZqskXWSxBkAdeR%2FTSz0T5bv9pHbXZLDkhs7xr3%2FMQ%2FDUmJY%2B7wPv3wXvy%2BZit3Pfc3oEVLL972BQSh9gsnGFfECBehT%2Fl85fRez9T0lM8MlcTSywoREvJ7h59PYyfIQyEGokBKa8FNfX9%2F5Stf0x5UT2icF0E7U0trbdd537RBUQT%2FMLPxnaK3NVY%2BdvI88h3sOFr%2B%2FgioNqJs0uZzaPzXdQ%2FMYZCJ0qaCV%2FHW9hRPxGG%2Bk0mf0NXmqk6LxDgsuYp7NRLUPxRfrb%2BSv2gii%2B8Sgc5it5jX6Ysn%2FQKCuUdX%2BDUzQMgESsWqokyoOrVd6P7cNQ7mGIX3OWAaTJ1K3V9DSWktk8QT1RI3pbIXdoaO%2FA1vzwUCC2zGz0kjJfxK7nkeVW893z%2B8LTvM4L2%2B0BXKCTMD%2Bq2Ld46pPOdC1r4O%2FNpq1QMYhUtmr5kJdrnyP1zIQYUmE4FiEi7wmvO%2FFBjkd8llykErCKSAiAAS5o4WTNdwtce13aYukRkDSyY4wrrnUlkDIpyBVH2zkAlsptibUjpWoQ3oANG6V69ofeyFuun8w1S%2FFD%2BWTmwZiQgAfQN7yEtsWGmYZye5oeAOxAYSNF%2FVv0HZnrm8vFb%2F23tizkU1hVPy1axNrhgOyi%2FWsFPqSdIm8%2BAfgktz0D8yHyc%2FRT2%2BWg5PHHkq%2BiMf9FcmXWAcqkSOQjojb2BNVYWeu%2FeIQScIzNlWexSrYvK75%2FIaXEWdrnarujuVKvysoab6TCHutK81IKl7E1QJ6TpBS
2016-11-11 15:17:57 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 302 redirect https://maven.oracle.com/oam/server/obrareq.cgi?encquery%3DpWVt9LA%2FZO2Zg9oy7%2FfjF6%2Fq7czpe3N0fSfRMalYRxEAG7nZX7uCOfu9%2FH1iUHyykaP0yHYrwXTXljpSaNgubNmx747sXOvhkNhMJhz0%2FdII9KfMspGx41DxkKrd5SfcHIBe0hGXyeDIOj2%2Ff3TdGqo%2Bu%2FZ%2FR5mcbyYh9%2Bx1915udAdYpHtKaAy4k1qmQeGmu9slCaT%2Fzyrob5nhmg27EuXitqn0MaSvGkmwyBT%2ByGG0YSe%2Bi1AXJY%2FGzPUVZCc6uYi7yP4fVtSLHDGP12vXeITC1C8x0XK3M%2BwhisZHVT3oM6a9Qjth59E9LmoUZXWsthrlBY%2F5%2FN0ZjvNo4eGZIlR2s56rwB5W95fpz4VU5e8X%2FJqM%2FuaRm%2FaCwWrw%2FSdJznE8xcmwrDHZInl8A6wiJg%3D%3D%20agentid%3Dwww.oracle.com%20ver%3D1%20crmethod%3D2&ECID-Context=1.005GGSc4oMA2rITYU9q2VO00027m0042D6%3BkXjE -> http://www.oracle.com/obrar.cgi?encreply=GKtOH6%2FbBB3GsPamDX%2Bp6NZ5PPVx%2FPJkm8AkVyxv%2FpxAdksPKea4JeMR%2FUhkYYNQd4%2FNx3lrywqZx0pDR27Ks3RketVRDR4L3ad7zhevgRLcm%2FyYGEMGkI8XkCAHRtKbpNzAEz%2FLkVxeishlCu5w05Xr5HVongbqKcCktbChHp9mljaRSNm5MX%2FjrPIjcfZ%2FzYzioDkLsqz5NeRy78icBe5tkEpJoC9E72M5ldKPZaPveoRNB5nLtZ1n%2BGktCcPsMgqrdQLXSgOdPNQpPPrThWS9B2Hmem8i79iZf949Wcpmr0PElL7%2Fd9KW7bOW8dekuZqskXWSxBkAdeR%2FTSz0T5bv9pHbXZLDkhs7xr3%2FMQ%2FDUmJY%2B7wPv3wXvy%2BZit3Pfc3oEVLL972BQSh9gsnGFfECBehT%2Fl85fRez9T0lM8MlcTSywoREvJ7h59PYyfIQyEGokBKa8FNfX9%2F5Stf0x5UT2icF0E7U0trbdd537RBUQT%2FMLPxnaK3NVY%2BdvI88h3sOFr%2B%2FgioNqJs0uZzaPzXdQ%2FMYZCJ0qaCV%2FHW9hRPxGG%2Bk0mf0NXmqk6LxDgsuYp7NRLUPxRfrb%2BSv2gii%2B8Sgc5it5jX6Ysn%2FQKCuUdX%2BDUzQMgESsWqokyoOrVd6P7cNQ7mGIX3OWAaTJ1K3V9DSWktk8QT1RI3pbIXdoaO%2FA1vzwUCC2zGz0kjJfxK7nkeVW893z%2B8LTvM4L2%2B0BXKCTMD%2Bq2Ld46pPOdC1r4O%2FNpq1QMYhUtmr5kJdrnyP1zIQYUmE4FiEi7wmvO%2FFBjkd8llykErCKSAiAAS5o4WTNdwtce13aYukRkDSyY4wrrnUlkDIpyBVH2zkAlsptibUjpWoQ3oANG6V69ofeyFuun8w1S%2FFD%2BWTmwZiQgAfQN7yEtsWGmYZye5oeAOxAYSNF%2FVv0HZnrm8vFb%2F23tizkU1hVPy1axNrhgOyi%2FWsFPqSdIm8%2BAfgktz0D8yHyc%2FRT2%2BWg5PHHkq%2BiMf9FcmXWAcqkSOQjojb2BNVYWeu%2FeIQScIzNlWexSrYvK75%2FIaXEWdrnarujuVKvysoab6TCHutK81IKl7E1QJ6TpBS
2016-11-11 15:17:58 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 302 redirect http://www.oracle.com/obrar.cgi?encreply=GKtOH6%2FbBB3GsPamDX%2Bp6NZ5PPVx%2FPJkm8AkVyxv%2FpxAdksPKea4JeMR%2FUhkYYNQd4%2FNx3lrywqZx0pDR27Ks3RketVRDR4L3ad7zhevgRLcm%2FyYGEMGkI8XkCAHRtKbpNzAEz%2FLkVxeishlCu5w05Xr5HVongbqKcCktbChHp9mljaRSNm5MX%2FjrPIjcfZ%2FzYzioDkLsqz5NeRy78icBe5tkEpJoC9E72M5ldKPZaPveoRNB5nLtZ1n%2BGktCcPsMgqrdQLXSgOdPNQpPPrThWS9B2Hmem8i79iZf949Wcpmr0PElL7%2Fd9KW7bOW8dekuZqskXWSxBkAdeR%2FTSz0T5bv9pHbXZLDkhs7xr3%2FMQ%2FDUmJY%2B7wPv3wXvy%2BZit3Pfc3oEVLL972BQSh9gsnGFfECBehT%2Fl85fRez9T0lM8MlcTSywoREvJ7h59PYyfIQyEGokBKa8FNfX9%2F5Stf0x5UT2icF0E7U0trbdd537RBUQT%2FMLPxnaK3NVY%2BdvI88h3sOFr%2B%2FgioNqJs0uZzaPzXdQ%2FMYZCJ0qaCV%2FHW9hRPxGG%2Bk0mf0NXmqk6LxDgsuYp7NRLUPxRfrb%2BSv2gii%2B8Sgc5it5jX6Ysn%2FQKCuUdX%2BDUzQMgESsWqokyoOrVd6P7cNQ7mGIX3OWAaTJ1K3V9DSWktk8QT1RI3pbIXdoaO%2FA1vzwUCC2zGz0kjJfxK7nkeVW893z%2B8LTvM4L2%2B0BXKCTMD%2Bq2Ld46pPOdC1r4O%2FNpq1QMYhUtmr5kJdrnyP1zIQYUmE4FiEi7wmvO%2FFBjkd8llykErCKSAiAAS5o4WTNdwtce13aYukRkDSyY4wrrnUlkDIpyBVH2zkAlsptibUjpWoQ3oANG6V69ofeyFuun8w1S%2FFD%2BWTmwZiQgAfQN7yEtsWGmYZye5oeAOxAYSNF%2FVv0HZnrm8vFb%2F23tizkU1hVPy1axNrhgOyi%2FWsFPqSdIm8%2BAfgktz0D8yHyc%2FRT2%2BWg5PHHkq%2BiMf9FcmXWAcqkSOQjojb2BNVYWeu%2FeIQScIzNlWexSrYvK75%2FIaXEWdrnarujuVKvysoab6TCHutK81IKl7E1QJ6TpBS -> /content/secure/maven/content/.meta/prefixes.txt
2016-11-11 15:17:58 DEBUG [ool-1-thread-19] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.gz -> HTTP/1.1 200 OK; 1.563 s
2016-11-11 15:17:58 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Protocol upgrade during 301 redirect on same host http://www.oracle.com/content/secure/maven/content/.meta/prefixes.txt -> https://www.oracle.com/content/secure/maven/content/.meta/prefixes.txt
2016-11-11 15:17:58 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect http://www.oracle.com/content/secure/maven/content/.meta/prefixes.txt -> https://www.oracle.com/content/secure/maven/content/.meta/prefixes.txt
2016-11-11 15:17:59 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] HEAD https://maven.oracle.com/.meta/prefixes.txt -> HTTP/1.1 404 Not Found; 4.489 s
2016-11-11 15:17:59 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.meta/prefixes.txt
2016-11-11 15:18:00 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/.meta/prefixes.txt -> https://www.oracle.com/content/secure/maven/content/.meta/prefixes.txt
2016-11-11 15:18:01 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.meta/prefixes.txt -> HTTP/1.1 404 Not Found; 1.038 s
2016-11-11 15:18:01 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing circular redirects in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:18:01 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing cookie use in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:18:01 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:18:01 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:18:01 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing circular redirects in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:18:01 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing cookie use in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:18:02 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:18:02 DEBUG [ar-4-thread-3  ] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/ -> http://www.oracle.com/webfolder/application/maven/index.html
2016-11-11 15:18:02 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.maven.routing.internal.RemoteScrapeStrategy - Not possible remote scrape of M2Repository(id=oracle_maven_proxy), no scraper succeeded.
2016-11-11 15:18:06 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.DefaultIndexerManager - Remote indexes updated successfully for repository "oracle_maven_proxy" [id=oracle_maven_proxy]
2016-11-11 15:18:06 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="oracle_maven_proxy" started.
2016-11-11 15:18:06 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="oracle_maven_proxy" finished: scanned=0, added=0, updated=0, removed=0, scanningDuration=0:00:00.695
2016-11-11 15:18:07 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository oracle_maven_proxy
2016-11-11 15:18:08 INFO  [ool-1-thread-19] - org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) finished :: Updating repository index "oracle_maven_proxy" from path null and below. (started 2016-11-11T15:17:55+01:00, runtime 0:00:13.635)
2016-11-11 15:18:08 INFO  [ool-1-thread-19] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Tasks] made by *TASK...
2016-11-11 15:18:11 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) started :: Updating repository index "oracle_maven_proxy" from path / and below.
2016-11-11 15:18:12 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "oracle_maven_proxy" [id=oracle_maven_proxy]
2016-11-11 15:18:12 DEBUG [pool-1-thread-3] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.properties
2016-11-11 15:18:12 DEBUG [pool-1-thread-3] - remote.storage.outbound - [oracle_maven_proxy] Downgrade from HTTPS to HTTP during 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.properties
2016-11-11 15:18:12 DEBUG [pool-1-thread-3] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> http://www.oracle.com/webfolder/application/maven/maven-index/nexus-maven-repository-index.properties
2016-11-11 15:18:12 DEBUG [pool-1-thread-3] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/.index/nexus-maven-repository-index.properties -> HTTP/1.1 200 OK; 661.9 ms
2016-11-11 15:18:12 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.DefaultIndexerManager - Remote indexes unchanged (no update needed) for repository "oracle_maven_proxy" [id=oracle_maven_proxy]
2016-11-11 15:18:12 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="oracle_maven_proxy" started.
2016-11-11 15:18:13 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.NexusScanningListener - Scanning of repositoryID="oracle_maven_proxy" finished: scanned=0, added=0, updated=0, removed=0, scanningDuration=0:00:00.810
2016-11-11 15:18:13 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.DefaultIndexerManager - Publishing index for repository oracle_maven_proxy
2016-11-11 15:18:14 INFO  [pool-1-thread-3] - org.sonatype.nexus.index.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) finished :: Updating repository index "oracle_maven_proxy" from path / and below. (started 2016-11-11T15:18:11+01:00, runtime 0:00:02.591)
2016-11-11 15:18:14 INFO  [pool-1-thread-3] - org.sonatype.nexus.configuration.application.DefaultNexusConfiguration - Applying Nexus Configuration due to changes in [Scheduled Tasks] made by *TASK...
2016-11-11 15:19:10 DEBUG [tp2714330-28670] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar
2016-11-11 15:19:10 DEBUG [tp2714330-28670] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar -> https://www.oracle.com/content/secure/maven/content/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar
2016-11-11 15:19:11 DEBUG [tp2714330-28670] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar -> HTTP/1.1 200 OK; 1.631 s
2016-11-11 15:19:11 DEBUG [tp2714330-28670] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar.sha1
2016-11-11 15:19:12 DEBUG [tp2714330-28670] - remote.storage.outbound - [oracle_maven_proxy] Following 301 redirect https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar.sha1 -> https://www.oracle.com/content/secure/maven/content/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar.sha1
2016-11-11 15:19:12 DEBUG [tp2714330-28670] - remote.storage.outbound - [oracle_maven_proxy] GET https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar.sha1 -> HTTP/1.1 200 OK; 1.221 s

When we try to index the repository it tries to downloaded serveral files.

https://maven.oracle.com/.index/nexus-maven-repository-index.properties

* no secure url, this will just download without authentication

https://maven.oracle.com/content/secure/maven/content/.meta/prefixes.txt

* secure part, we will get redirected to “https://login.oracle.com:443/oam/server/obrareq.cgi”
* the login will redirect us back and the cookie is set

From now on the cookie is set and we can remotely retrieve artifacts which will get locally stored in our nexus.
Basically the repository is ready to remotely retrieve any artifacts which are stored in the Oracle Maven repository.

Since we haven’t touched any of the artifacts yet, none are currently stored locally.
blog_nexus_uncached_file
* oracle-soa-plugin is not cached yet

Let’s try to deploy one of our composites

exectue mvn com.oracle.soa.plugin:oracle-soa-plugin:deploy

And check the Nexus logging again :

[oracle_maven_proxy] GET https://maven.oracle.com/com/oracle/soa/plugin/oracle-soa-plugin/12.1.3-0-0/oracle-soa-plugin-12.1.3-0-0.jar

blog_nexus_cached_file
* oracle-soa-plugin is cached

When we download this file you will noticed we won’t get redirect to the login again.

In the nexus.properties file we configured 2 settings, see : https://support.sonatype.com/hc/en-us/articles/213465728-How-to-configure-a-proxy-repository-to-maven-oracle-com
this is the logging output of these

2016-11-11 15:18:01 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing circular redirects in proxy M2Repository(id=oracle_maven_proxy)
2016-11-11 15:18:01 INFO  [ar-4-thread-3  ] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientManagerImpl - Allowing cookie use in proxy M2Repository(id=oracle_maven_proxy)

The authentication failure

We delete indexes of (some) of our repositories on daily base, and last week we noticed our builds were failing because it couldn’t retrieve dependencies related to the oracle-soa-plugin.
Since we didn’t change anything buildscript-related or account-related, we had to look at the loggings of Nexus to see why it wasn’t able to retrieve files.

The logging showed a valid login, a valid redirect and when i tried the redirect url in my own browser i was just able to download the file. For some reason Nexus wasn’t able to download the file and store it locally.
Looking at the jira issue, Oracle changed something at there site related to the basic authentication.

End of story, we lost time trying to find out what could be wrong at our site, Oracle fixed it at there site and our Nexus is massively retrieving bytes again 😉

links :
https://support.sonatype.com/hc/en-us/articles/213465728-How-to-configure-a-proxy-repository-to-maven-oracle-com
https://issues.sonatype.org/browse/NEXUS-11467
https://blogs.oracle.com/WebLogicServer/entry/sonatype_nexus_2_11_2
http://www.oracle.com/webfolder/application/maven/index.html
http://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9012

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

Comments are closed.