"Failure to transfer org.apache.maven.plugins:maven-failsafe-plugin:pom:2.16 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will
not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-failsafe-
plugin:pom:2.16 from/to central (http://repo.maven.apache.org/maven2): proxy.example.com"
I am getting the above error in pom tag. I searched and found out this is due to proxy settings issue. But whatismyip.com shows "no proxy detected".
Question 1: Still could I be behind proxy? If yes how to get the information about proxy.
I learned that users>home>.m2>settings.xml needs to be updated with proxies. For ex:
<proxies>
<proxy>
<id>example-proxy</id>
<active>true</active>
<protocol>http</protocol>
<username>tomcat</username>
<password>tomcat</password>
<host>proxy.example.com</host>
<port>8008</port>
<nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
</proxy>
</proxies>
Question 2: In this what do I substitute for my case in tag or where can I find information that is specific to myself.
Question 3: Is there any correlation between users>home>.m2>settings.xml and eclipse window>preferences>general>network Connections>Active Provider(Manual)>http. Do I need to update the same information in both places.
Question 1: Still could I be behind proxy? If yes how to get the
information about proxy.
Assuming you are using Windows:
Trigger Run command: Press Win+R, and type inetcpl.cpl, OK.
Switch to Connections tab and press Lan settings button.
Note down the Address and Port from "Proxy server" section.
Question 2: In this what do I substitute for my case in tag or where
can I find information that is specific to myself.
Substitute the <host> and <port> in your settings.xml with Step 3 data.
Question 3: Is there any correlation between
users>home>.m2>settings.xml and eclipse
window>preferences>general>network Connections>Active
Provider(Manual)>http. Do I need to update the same information in
both places.
No. They are different. What mostly works in Eclipse is the Native network connection mode: Window > Preferences > General > Network Connections > Active Provider > Native. This makes Eclipse to use your native browser's settings (IE in case of Windows).
There are various sites to check if you are behind a proxy or not. However, if you are behind then it must be configured in your browser; check there to see all the information about it.
There is a difference about the settings.xml file of Maven and network connections of Eclipse.
settings.xml is a Maven-specific file. Whenever Maven (and Eclipse through the m2e plugin) will be searching for a dependency, it will use the proxy information located in this file.
Network connections in Eclipse is Eclipse-specific. It tells Eclipse about the proxy information when it want to connect to the Internet (through updates or marketplace). You can configure Eclipse to use the proxy information of your OS (typically Internet Explorer proxy settings on Windows machine).
Also, the error message you have (Failure to transfer ... from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced), this is a very well known issue and it is solved by launching Maven with the -U flag. This flag forces Maven to update any dependencies. See this question for a way to do that in Eclipse.
Related
when I go to Install new software and select an update site, I get a "HTTP Proxy Authentication Required" error.
I have searched the internets for quite some time, and I still did not get an answer.
Facts:
I get this error for every update site.
I am able to access the update site link both in an internal or external browser.
I am using the "native" proxy in eclipse network settings.
direct proxy in eclipse network settings does not work either.
our helpdesk told me that it's not possible to set up the manual proxy in eclipse network settings (or they don't know)
I've tried manually inserting a proxy server:port that I found in a proxy.pac file that I've discovered, no luck...
I've tried reinstalling Eclipse, re-adding and/or reloading repositories and deleting repo cache dir
I'm using: -Djava.net.preferIPv4Stack=true in ini file
I've tried mirroring the repositories using both methods, but log file gives the same proxy error
My system:
Eclipse for PHP Developers
Version: Luna Service Release 1a (4.4.1)
Build id: 20150109-0600
Windows 7, 64bit
Just add this at the end of your eclipse.ini :
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
In my case I had to set the proxy also to manual (SOCKS should be unchecked). But then, no more hassle.
It basically disables the default Apache HTTP client and will use an HTTP client based on the JRE URL connection.
See: https://wiki.eclipse.org/Disabling_Apache_Httpclient
Edit:
There is a new Apache HTTP client version for which the parameter value has changed:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45
To disable both use:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4
I could solve the same problem by going to "Windows" → "Preferences" → "Network Connections" and set "Active Provider" to "Direct". See more details and a screenshot in my answer here.
Switch to the manual proxy options
Enter your proxy, user and password
Do it for al except SOCKS. SOCKS you may leave empty.
I've tried a lot of solutions in Google, but nothing :(
I was going to forget about eclipse, but suddenly it worked :)
In the end I talked to a guy who manages the proxy settings in our company and luckily he did some changes to the proxy server and now I'm able to install addons & update software from within eclipse :-)
For my proxy settings, I HAD to leave SOCKS proxy configuration empty after entering manual proxy settings for both HTTP and HTTPS.
Leaving them all empty didn't work, and filling them all out didn't work either.
It worked for me using this in eclipse.ini:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient45,org.eclipse.ecf.provider.filetransfer.httpclient4
Source: https://wiki.eclipse.org/Disabling_Apache_Httpclient45
If you are using eclipse through a virtual machine, then set the network settings to manual in Eclipse. That should solve the issue.
I'm trying to add an SVN repository to Eclipse.
I've installed Subclipse, and it seems to be working fine. But, when I try to "add a new SVN repository", I input this:
http://svn.alfresco.com/repos/alfresco-open-mirror
and I get this:
Error validating location: "org.apache.subversion.javahl.ClientException: RA layer request failed svn: unable to connect to a repository at url 'svn..'
svn: OPTIONS of 'http://svn.alfresco.com/repos/alfresco-open-mirror': could not connect to server 'alfresco.com' Keep location anyway?
I've checked it in both browsers(on computer and internal eclipse br) - both works
What is the decision?
Did you configure Subclipse to work with your proxy server? I'm asking because you specify this error in the second comment: svn: E170001: HTTP proxy authorization failed.
To make sure that proxy settings are correct, check the servers file on the CLIENT
machine. The file is located in .subversion directory in the user's home directory on Linux systems and in %APPDATA%\Subversion on Windows systems. Configurable options you are interested in are:
http-proxy-exceptions
http-proxy-host
http-proxy-port
http-proxy-username
If you don't have any proxy server but these options are still configured, then remove them. Otherwise, make sure that these settings are valid. See SVNBook | Runtime Configuration Area.
This is Eclipse Juno.
for a Maven plugin, I get errors of the form:
ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from http://repo1.maven.org/maven2 ...
for Eclipse marketplace, I get:
MarketplaceDiscoveryStrategy failed with an error
Cannot complete request to ...
I have turned off the firewall both on my computer and at the router, I do not have a proxy, the Internet Options proxy box is unchecked. Putting the web addresses above in my browser (on the same box) returns the correct contents, however, Eclipse doesn't seem to want to contact external servers. What should I change? Help!
edit: my Preferences -> General -> Network Connection -> Provider is set to Direct (not that it matters, setting it to native doesn't work either)
edit2: mvn clean install from the commannd line works just fine and downloads everything.
Oh wow, absolute craziness. It's a windows/IPV6 issue with JDK7.
see:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7115226
and
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696
which can be solved by adding -Djava.net.preferIPv4Stack=true in eclipse.ini.
As to why my command line was working? I didn't update JAVA_HOME when I installed JDK7, and changed the vm setting in eclipse.ini. In other words, my command line was running against JDK6...
Note: proxy could be configures somewhere other than the internet options wizard
It has something to do with file named settings.xml
to find the settings.xml file open Window>Preferences>Maven>User Settings
the file in the field User Settings determines the place of the settings file
you mentioned you had no proxy, so make sure this file has no proxy info, if you have proxy settings by any means the proxy info should be mentioned in this file
<proxies>
<proxy>
<id>[proxy id]</id>
<active>true</active>
<protocol>http</protocol>
<host>[host]</host>
<port>[port]</port>
<nonProxyHosts>
[urls to be skipped separated by '|']
</nonProxyHosts>
</proxy>
</proxies>
I hope this could help with you issue
I am using Eclipse Indigo and Subversive SVN Team provider.
While i was generating projects using SVN repository i provided user name and password.
Now after a week i want to update some files,
right click on a file, Team->Update, getting below error:
Some resources were not updated.
svn: connection refused by the server
svn: PROPFIND request failed on 'bla bla'
I think i must log in but from where, can you provide a path? Or what may the problem be?
Thanks
Just open eclipse preferences.
click on General>Network Connections.
Then according to the environment, set active provider and other proxy settings.
Eclipse preferences. click on General>Network Connections -> change Active Provider value to Manual from the drop down. it worked for me.
The PROPFIND request failure probably means, Subversive cannot read contents from the server. A more detailed error message might be present in the Error log view (Window/Show view/Other..., and there it is in the General category, if I remember correctly).
Without a more detailed error message I would open the SVN Repository Exploring viewperspective, and try to update the Repository location settings (Right click, Properties), and there try to (1) validate the existing settings, and (2) update the username/password information.
The following steps allow me to work from my corporate network through proxy server to update Eclipse ide plugins, and connect to corporate svn server:
1. Open Window > Preferences > Network Connection Settings
2. Select Active Provider to "Manual"
3. Set proxy settings for HTTP/HTTPS (click Edit…)
4. Clear SOCKS proxy if it is set (select SOCKS row, click "Clear" button)
5. Add host svn.srv.com in Proxy bypass if svn.srv.com is within intranet
6. Apply and optionally restart Eclipse
Note: replace proxy.srv.com, and svn.srv.com with your actual urls
See answer also
Check your eclipse network setting ,
add SVN server to bypass proxy list
Eclipse preferences. click on General>Network Connections -> change Active Provider value to Manual from the drop down. it worked for me too.
I am behind a firewall which uses autoproxy configuration script. I am able to browse the internet when I enable the autoproxy url in most browsers I use (IE 7, IE 8, FF, Chrome). For your reference to enable autoproxy url on Windows goto: Settings -> Control Panel -> Internet Options -> Connections -> Lan Settings -> (Check) use automatic configuration scripts -> enter Address value as the autoproxy script url.
The issue I am facing is: I have Eclipse IDE and I want to configure the proxy settings in Eclipse similar to browser settings but I am unable to. I could not find a setting in Eclipse or NetBeans 6.9.1 or IntelliJ Idea to solve this issue.
I am using Maven2 integrated with these IDEs and no local repositories set up yet. Maven2 tries to install jars by downloading them from Internet but it cannot due to the proxy setting. I can manually download these libraries from Maven2 repositories and have an internal repository hosted using Artifactory or Nexus but I would like to know if there is any way I can do it from IDE itself...
Thanks for your feedback. Please let me know if you have any questions.
Here is what I do. All of these instructions are based on my minimal experiences with working PACs, so YMMV.
Download your pac file via your pac URL. It's plain text and should be easy to open in a text editor.
Near the bottom, there's probably a section that says something like:
return "PROXY w.x.y.z:a"
where "w.x.y.z" is an ip address or username and "a" is a port number.
Write these down.
In a recent version of eclipse :
Go to Window -> Preferences -> General -> Network Connections=
Change the provider to "Manual"
Select the "HTTP" line and click the edit button
Add the IP address and port number above to the http line
If you have to authenticate to use the proxy,
select "Requires Authentication"
type in your username. Note that if your authentication is on a Windows domain, you might have to prepend the domain name and a backslash (\) like: MYDOMAIN\MYUSERID
Type in your password
Click OK
Click Apply
Click OK
At this point, you should be able to browse using the internal web browser (at least on http URLs).
Good luck.
Edit:
Just so you know, it's WAY easier to use Nexus, one set of <mirror> tags and a single proxy setup (inside Nexus) to manage the proxy issues of Maven inside a firewall.
In the file:
$your_eclipse_installation\configuration.settings\org.eclipse.core.net.prefs
you need the option:
systemProxiesEnabled=true
You can set it also by the Eclipse GUI:
Go to Window -> Preferences -> General -> Network Connections
Change the provider to "Native"
The first way is working even if your Eclipse is broken due to wrong configuration attempts.
Download whatever configuration script that your browser is using.
the script would have various host:port configuration.
based on the domain you want to connect , one of the host:port is selected by the borwser.
in the eclipse network setting you can try to put on of the host ports and see if that works.
worked for me.
the config script looks like,
if (isPlainHostName(host))
return "DIRECT";
else if (dnsDomainIs(host, "<***sample host name *******>"))
return "PROXY ***some ip*****; DIRECT";
else if (dnsDomainIs(host, "address.com")
|| dnsDomainIs(host, "adress2..com")
|| dnsDomainIs(host, "address3.com")
|| dnsDomainIs(host, "address4.com")
return "PROXY <***some proxyhost****>:8080";
you would need to look for the host port in the return statement.
Download proxy script and check last line for return statement Proxy IP and Port.
Add this IP and Port using these step.
1. Windows -->Preferences-->General -->Network Connection
2. Select Active Provider : Manual
3. Proxy entries select HTTP--> Click on Edit button
4. Then add Host as a proxy IP and port left Required Authentication blank.
5. Restart eclipse
6. Now Eclipse Marketplace... working.
Well there's the Network Connections preference page; you can add proxies there. I don't know much about it; I don't know if the Maven integration plugins will use the proxies defined there.
You can find it at Window...Preferences, then General...Network Connections.
In Netbeans, we can use Tools->Options-> General Tab - > Under proxy settings, select Use system proxy settings.
This way, it uses the proxy settings provided in Settings -> Control Panel -> Internet Options -> Connections -> Lan Settings -> use automatic configuration scripts.
If you are using maven, make sure the proxy settings are not provided there, so that it uses Netbeans settings provided above for proxy.
Hope this helps.
Shreedevi