|http authentication for p2.mirror task? [message #843192]
||Thu, 12 April 2012 17:07
| justin georgeson
Registered: April 2012
I've searched this forum for 'mirror auth' and 'http auth' so apologies if this has already been covered. I'm trying to provide a utility script using a p2.mirror Ant task to allow developers to locally mirror a set of p2 repos that use http and require authentication. It's not a proxy server issue, the http server is internal and requires authentication. |
<?xml version="1.0" encoding="UTF-8"?>
<repository location="/p2/local" name="Composite" />
<repository location="http :// server/P2/repo1" />
<repository location="http :// server/P2/repo2" />
<repository location="http :// server/P2/repo3" />
Note I had to break up the URLs above due to not having posted 25 times yet, it's correct in my file.
If I run org.eclipse.ant.core.antRunner on this build file I get a ProvisionException for authentication failure. If I try to use username@server then the ProvisionException is for 'Unknown host'. If I try to use username:password@server then the ProvisionException is for 'Unable to read repository.'
How can I supply my credentials to get this to work?
Powered by FUDForum
. Page generated in 0.05184 seconds