问题
Eclipse for Testers Version: Indigo Release Build id: 20110615-0604
I try to install TestNG but below error appeared.
" Unable to read repository at http://beust.com/eclipse. http://beust.com/eclipse is not a valid repository location. "
Kindly Resolve the problems
回答1:
This is because http://beust.com/eclipse is redirecting to http://dl.bintray.com/testng-team/ and Eclipse software seems to be not handling this URL redirection as intended.
If you add the URL as http://dl.bintray.com/testng-team/testng-eclipse-release/ then this will work OK.
回答2:
I added one "/" to the end: http://beust.com/eclipse/, then it works. If you use RAD 8+, navigate from Windows -> Preferences -> General -> Network Connections, make sure you have correct settings here, for me I have to change the setting from Native to Direct.
回答3:
Disconnect from your company's intranet network and connect to your network (Like mobile hotspot or home wifi). Try install then. Worked for me.
回答4:
You can try below link
https://www.techbeamers.com/install-testng-in-eclipse-ide/
The URL for downloading the Zip file is for version 6.11 in the above link. If you need a higher version try http://dl.bintray.com/testng-team/testng-eclipse-release/zipped/
回答5:
It doesn't work for Eclipse Neon at all. You can try to download the zipped archive file and add the 'update site' as an archive file from the file system.
回答6:
> Install TestNG In Eclipse IDE Via Offline Jar Files
- Download the latest TestNG Jar files from the link TestNg Jars
- Go to the eclipse installation directory and look for the “dropins” folder there.
- Create a folder inside the dropins folder and name it as “testng-eclipse-6.11“
- Extract the “site_assembly.zip” file and copy its contents to the newly created “testng-eclipse-6.11” directory.
- Restart Eclipse
source: techbeamers
回答7:
The given link is https://beust.com/eclipse remove "s" from https & try with link http://beust.com/eclipse
回答8:
Make sure you don't have a space character before or after the entry in the "Work with" field as you try to add the software site.
Other than that, the software site is perfectly valid. Perhaps the server was just down at the time you tried it. You could also check to verify that there is no proxy or firewall filtering on your end. Try pinging the site or accessing it in some other way. If Eclipse can't talk to the site, it has no way of knowing that it is valid.
回答9:
- Make sure you are connected to the Internet
- Key in the exact URL - http://beust.com/eclipse/
回答10:
I tried Network connections -> Change native to manual -> Selected Socks and clicked on clear then I tried to install the TestNG plugin from install new software and add the URL. while installing eclipse was asking to sign in but I clicked on ok every time and installation were completed.
I tried many steps editing the eclipse.ini file etc and changing native to direct. None of those steps worked for me
回答11:
Try below steps:- Ping the URL in CMD to check if there are any loss of data packets. So you will get clarity it is problem with your network or not ,try with different network. Many times your antivirus or firewall block the incoming network so disable them temporarily and try.
回答12:
To resolve this issue.
GO to Eclipse installed folder Edit eclipse.ini file and insert -Djava.net.preferIPv4Stack=true at the end of that file. Restart the eclipse.
回答13:
I was using "http://beust.com/eclipse/" but unable to download TestNG jar it is showing no contents.
If you will use this URL "http://dl.bintray.com/testng-team/testng-eclipse-release/" then you will able to download, it worked for me.
回答14:
Just install TestNG from below URL and no such issue will occur at latest eclipse releases:
http://dl.bintray.com/testng-team/testng-eclipse-release/
来源:https://stackoverflow.com/questions/10720263/unable-to-read-repository-at-http-beust-com-eclipse