可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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:
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.
回答2:
Disconnect from your company's intranet network and connect to your network (Like mobile hotspot or home wifi). Try install then. Worked for me.
回答3:
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.
回答4:
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.
回答5:
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/
回答6:
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.
回答7:
- Make sure you are connected to the Internet
- Key in the exact URL - http://beust.com/eclipse/
回答8:
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
回答9:
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.
回答10:
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.
回答11:
> 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