Repository: zeppelin Updated Branches: refs/heads/master 2a363cd6d -> f6b48d3b6
[ZEPPELIN-281] Windows7 build2 ### What is this PR for? For next release I would like to do simple additions to my proxy setup on main README: - Add Maven proxy configuration example. - Add note on Bower main repository (just for zeppelin-web module) [1]. [1] Currently, there is no way to reach Bower main repository through NTLM proxy (no matter what you put in your .bowerrc). The problem is `Request failed with ECONNRESET`. Let me know if someone can build zeppelin-web behind NTLM proxy . ### What type of PR is it? Documentation ### What is the Jira issue? ZEPPELIN-281 (closed) ### How should this be tested? No tests, just check README, proxy settings paragraph. ### Questions: * Does the licenses files need update? no * Is there breaking changes for older versions? no * Does this needs documentation? no Author: fvaleri <fedeval...@gmail.com> Closes #1069 from fvaleri/windows7-build2 and squashes the following commits: 065e3f3 [fvaleri] Add Maven proxy configuration. Add Bower NTLM proxy note. Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/f6b48d3b Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/f6b48d3b Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/f6b48d3b Branch: refs/heads/master Commit: f6b48d3b656d3ffc51da8d6325731dddf86ab3fd Parents: 2a363cd Author: fvaleri <fedeval...@gmail.com> Authored: Wed Jun 22 22:38:11 2016 +0200 Committer: Lee moon soo <m...@apache.org> Committed: Wed Jun 29 09:40:08 2016 -0700 ---------------------------------------------------------------------- README.md | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/f6b48d3b/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 131463b..990cc9a 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,35 @@ sudo apt-get install libfontconfig ``` #### Proxy settings (optional) -If you are behind a corporate Proxy with NTLM authentication you can use [Cntlm Authentication Proxy](http://cntlm.sourceforge.net/) . +First of all, set your proxy configuration on Maven `settings.xml`. +``` +<settings> + <proxies> + <proxy> + <id>proxy-http</id> + <active>true</active> + <protocol>http</protocol> + <host>localhost</host> + <port>3128</port> + <!-- <username>usr</username> + <password>pwd</password> --> + <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts> + </proxy> + <proxy> + <id>proxy-https</id> + <active>true</active> + <protocol>https</protocol> + <host>localhost</host> + <port>3128</port> + <!-- <username>usr</username> + <password>pwd</password> --> + <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts> + </proxy> + </proxies> +</settings> +``` -Before build start, run these commands from shell. +Then, run these commands from shell. ``` export http_proxy=http://localhost:3128 export https_proxy=http://localhost:3128 @@ -57,7 +83,7 @@ git config --global https.proxy http://localhost:3128 git config --global url."http://".insteadOf git:// ``` -After build is complete, run these commands to cleanup. +Cleanup: set `active false` in Maven `settings.xml` and run these commands. ``` npm config rm proxy npm config rm https-proxy @@ -67,9 +93,10 @@ git config --global --unset url."http://".insteadOf ``` _Notes:_ + - If you are behind NTLM proxy you can use [Cntlm Authentication Proxy](http://cntlm.sourceforge.net/). - If you are on Windows replace `export` with `set` to set env variables - - Replace `localhost:3128` with standard pattern `http://user:pwd@host:port` - - Git configuration is needed because Bower use it for fetching from GitHub + - Replace `localhost:3128` with the standard pattern `http://user:pwd@host:port` + - For zeppelin-web: currently there is no way to reach Bower main repo through NTLM proxy #### Install maven ```