-
1. Re: Cannot Establish Secured Connection to Enterprise Maven Repository
ffang Jul 4, 2011 9:21 PM (in response to wayn23)Hi,
Try change
org.ops4j.pax.url.mvn.repositories=https://internal.server.com:8443/archiva/repository
to
org.ops4j.pax.url.mvn.repositories=https://userid1:password1@internal.server.com:8443/archiva/repositorypassword1@internal.server.com:8443/archiva/repository
Freeman
-
2. Re: Cannot Establish Secured Connection to Enterprise Maven Repository
wayn23 Jul 5, 2011 11:04 AM (in response to ffang)I tried the http://userid:password@ option, but it means that the password does not contain any special characters, like ?@ and mine does.
Can the password be stored in the settings.xml file? Can it be encrypted?
-
3. Re: Cannot Establish Secured Connection to Enterprise Maven Repository
wayn23 Aug 4, 2011 5:23 PM (in response to wayn23)I just want to follow up on how I solved this.
There is a bug in m2eclipse https://bugs.eclipse.org/bugs/show_bug.cgi?id=343009 that fails to respond to a challenge response for authentication from a proxy if the challenge is for an NTLM account. A work-around is to put something between m2eclipse and the proxy that knows how to handle the challenge properly. CNTLM is an open source proxy to proxies. The way it helps is it is setup to provide the NTLM credentials to the company proxy when it asks. m2eclipse is then configured to use the CNTLM proxy. (CNTLM will only accept requests from the local machine, so the credentials cannot be used externally.)
At runtime, m2eclipse calls the CNTLM proxy, which then calls the company proxy. The company proxy challenges for credentials and the CNTLM proxy provides them and the call completes normally.
-
4. Re: Cannot Establish Secured Connection to Enterprise Maven Repository
ffang Aug 7, 2011 10:30 PM (in response to wayn23)Hi,
Thanks so much for sharing your solution.
Freeman